diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-12-14 04:54:40 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-12-14 04:54:40 +0000 |
| commit | 8cf1f935c23c5b6269e9f1fef959285cfef96f29 (patch) | |
| tree | 5639b1bb2d7c547a6753e48fc44a1b56e07e468a | |
| parent | 676268e45a150e9aadb35ba38968df286bd3a27d (diff) | |
| download | bcm5719-llvm-8cf1f935c23c5b6269e9f1fef959285cfef96f29.tar.gz bcm5719-llvm-8cf1f935c23c5b6269e9f1fef959285cfef96f29.zip | |
formatting changes.
llvm-svn: 91263
| -rw-r--r-- | clang/include/clang/Lex/Preprocessor.h | 4 | ||||
| -rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/clang/include/clang/Lex/Preprocessor.h b/clang/include/clang/Lex/Preprocessor.h index 50d15407417..4e3651befe7 100644 --- a/clang/include/clang/Lex/Preprocessor.h +++ b/clang/include/clang/Lex/Preprocessor.h @@ -91,12 +91,14 @@ class Preprocessor { bool KeepMacroComments : 1; // State that changes while the preprocessor runs: - bool DisableMacroExpansion : 1; // True if macro expansion is disabled. bool InMacroArgs : 1; // True if parsing fn macro invocation args. /// Whether the preprocessor owns the header search object. bool OwnsHeaderSearch : 1; + /// DisableMacroExpansion - True if macro expansion is disabled. + bool DisableMacroExpansion : 1; + /// Identifiers - This is mapping/lookup information for all identifiers in /// the program, including program keywords. mutable IdentifierTable Identifiers; diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index f734edfe238..f5c60eb4943 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -481,11 +481,11 @@ void Preprocessor::HandleDirective(Token &Result) { CurPPLexer->ParsingPreprocessorDirective = true; ++NumDirectives; - + // We are about to read a token. For the multiple-include optimization FA to // work, we have to remember if we had read any tokens *before* this // pp-directive. - bool ReadAnyTokensBeforeDirective = CurPPLexer->MIOpt.getHasReadAnyTokensVal(); + bool ReadAnyTokensBeforeDirective =CurPPLexer->MIOpt.getHasReadAnyTokensVal(); // Save the '#' token in case we need to return it later. Token SavedHash = Result; @@ -1549,8 +1549,9 @@ void Preprocessor::HandleIfdefDirective(Token &Result, bool isIfndef, // Should we include the stuff contained by this directive? if (!MI == isIfndef) { // Yes, remember that we are inside a conditional, then lex the next token. - CurPPLexer->pushConditionalLevel(DirectiveTok.getLocation(), /*wasskip*/false, - /*foundnonskip*/true, /*foundelse*/false); + CurPPLexer->pushConditionalLevel(DirectiveTok.getLocation(), + /*wasskip*/false, /*foundnonskip*/true, + /*foundelse*/false); } else { // No, skip the contents of this block and return the first token after it. SkipExcludedConditionalBlock(DirectiveTok.getLocation(), |

