diff options
author | Faisal Vali <faisalv@yahoo.com> | 2018-01-01 15:42:13 +0000 |
---|---|---|
committer | Faisal Vali <faisalv@yahoo.com> | 2018-01-01 15:42:13 +0000 |
commit | 038df490334d63f6533fa1fdf0b310f59e2d730b (patch) | |
tree | 7566cd5f09b5b4047759cbac8a8d912035873d67 /clang/lib/Parse/Parser.cpp | |
parent | 208ac6547c4f98c75e76a79f13a8d4f9d1076ab2 (diff) | |
download | llvm-038df490334d63f6533fa1fdf0b310f59e2d730b.zip llvm-038df490334d63f6533fa1fdf0b310f59e2d730b.tar.gz llvm-038df490334d63f6533fa1fdf0b310f59e2d730b.tar.bz2 |
[NFC] Modernize enums TypeSpecifierWidth, TypeSpecifierSign & TypeSpecifierType into scoped enums with underlying types.
- Since these enums are used as bit-fields - for the bit-fields to be interpreted as unsigned, the underlying type must be specified as unsigned.
Previous failed attempt - wherein I did not specify an underlying type - was the sum of:
https://reviews.llvm.org/rC321614
https://reviews.llvm.org/rC321615
llvm-svn: 321622
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r-- | clang/lib/Parse/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp index a6f966e..9e33b34 100644 --- a/clang/lib/Parse/Parser.cpp +++ b/clang/lib/Parse/Parser.cpp @@ -174,7 +174,7 @@ bool Parser::ExpectAndConsumeSemi(unsigned DiagID) { return ExpectAndConsume(tok::semi, DiagID); } -void Parser::ConsumeExtraSemi(ExtraSemiKind Kind, unsigned TST) { +void Parser::ConsumeExtraSemi(ExtraSemiKind Kind, TypeSpecifierType TST) { if (!Tok.is(tok::semi)) return; bool HadMultipleSemis = false; |