aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Parse/ParseTentative.cpp
diff options
context:
space:
mode:
authorSterling Augustine <saugustine@google.com>2020-04-17 09:43:55 -0700
committerSterling Augustine <saugustine@google.com>2020-04-17 10:29:40 -0700
commita4b88c044980337bb14390be654fe76864aa60ec (patch)
tree2b6023a8ce318f137eb7d56390da08d7509bf63b /clang/lib/Parse/ParseTentative.cpp
parent5793c84925fa98f00dbc57f476448babc5ee3aaa (diff)
downloadllvm-a4b88c044980337bb14390be654fe76864aa60ec.zip
llvm-a4b88c044980337bb14390be654fe76864aa60ec.tar.gz
llvm-a4b88c044980337bb14390be654fe76864aa60ec.tar.bz2
Revert "Implement _ExtInt as an extended int type specifier."
This reverts commit 61ba1481e200b5b35baa81ffcff81acb678e8508. I'm reverting this because it breaks the lldb build with incomplete switch coverage warnings. I would fix it forward, but am not familiar enough with lldb to determine the correct fix. lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:3958:11: error: enumeration values 'DependentExtInt' and 'ExtInt' not handled in switch [-Werror,-Wswitch] switch (qual_type->getTypeClass()) { ^ lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4633:11: error: enumeration values 'DependentExtInt' and 'ExtInt' not handled in switch [-Werror,-Wswitch] switch (qual_type->getTypeClass()) { ^ lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4889:11: error: enumeration values 'DependentExtInt' and 'ExtInt' not handled in switch [-Werror,-Wswitch] switch (qual_type->getTypeClass()) {
Diffstat (limited to 'clang/lib/Parse/ParseTentative.cpp')
-rw-r--r--clang/lib/Parse/ParseTentative.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/clang/lib/Parse/ParseTentative.cpp b/clang/lib/Parse/ParseTentative.cpp
index 61a8266..529e3f3 100644
--- a/clang/lib/Parse/ParseTentative.cpp
+++ b/clang/lib/Parse/ParseTentative.cpp
@@ -1141,7 +1141,6 @@ Parser::isExpressionOrTypeSpecifierSimple(tok::TokenKind Kind) {
case tok::kw_half:
case tok::kw_float:
case tok::kw_int:
- case tok::kw__ExtInt:
case tok::kw_long:
case tok::kw___int64:
case tok::kw___int128:
@@ -1779,24 +1778,6 @@ Parser::isCXXDeclarationSpecifier(Parser::TPResult BracedCastResult,
case tok::kw__Atomic:
return TPResult::True;
- case tok::kw__ExtInt: {
- if (NextToken().isNot(tok::l_paren))
- return TPResult::Error;
- RevertingTentativeParsingAction PA(*this);
- ConsumeToken();
- ConsumeParen();
-
- if (!SkipUntil(tok::r_paren, StopAtSemi))
- return TPResult::Error;
-
- if (Tok.is(tok::l_paren))
- return TPResult::Ambiguous;
-
- if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace))
- return BracedCastResult;
-
- return TPResult::True;
- }
default:
return TPResult::False;
}
@@ -1829,7 +1810,6 @@ bool Parser::isCXXDeclarationSpecifierAType() {
case tok::kw_bool:
case tok::kw_short:
case tok::kw_int:
- case tok::kw__ExtInt:
case tok::kw_long:
case tok::kw___int64:
case tok::kw___int128: