diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-10-05 18:52:21 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-10-05 18:52:21 +0000 |
commit | b9f341916e484ff6ba2c2d28c8b2dd5fa12b0015 (patch) | |
tree | 24b6c4b1ca0febeff26a1d24621bebf39388e840 /lib/Lex/Preprocessor.cpp | |
parent | 770918281c5bdc7b5b3942285c407e3d62270053 (diff) |
Found a subtle bug caused by an implicit enum-to-bool conversion (of the TentativeParsingResult enum).
This was the motivation of the following changes:
-'TentativeParsingResult' enum is replaced by a 'TPResult' class that basically encapsulates the enum.
-TPR_true, TPR_false, TPR_ambiguous, and TPR_error enum constants are replaced by TPResult::True(), TPResult::False(), etc. calls that return a TPResult object.
-Also fixed the subtle bug in Parser::isCXXFunctionDeclarator (caught by the above changes as a compilation error).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
0 files changed, 0 insertions, 0 deletions