diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-13 01:29:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-13 01:29:17 +0000 |
commit | 0af3ba17486de80987f8f22f5d418cef781a471c (patch) | |
tree | b8fa061796bbaae27e8510974f1fbe5924ff483b /clang/lib/Lex/Preprocessor.cpp | |
parent | 0d6c061401d9b06cbcdc1cb3511d3b5332cee3d8 (diff) | |
download | bcm5719-llvm-0af3ba17486de80987f8f22f5d418cef781a471c.tar.gz bcm5719-llvm-0af3ba17486de80987f8f22f5d418cef781a471c.zip |
implement the microsoft/gnu "__COUNTER__" macro: rdar://4329310
llvm-svn: 68933
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 097b4542b6e..2c9b0b937a2 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -53,7 +53,8 @@ Preprocessor::Preprocessor(Diagnostic &diags, const LangOptions &opts, SourceMgr(SM), HeaderInfo(Headers), Identifiers(opts, IILookup), CurPPLexer(0), CurDirLookup(0), Callbacks(0) { ScratchBuf = new ScratchBuffer(SourceMgr); - + CounterValue = 0; // __COUNTER__ starts at 0. + // Clear stats. NumDirectives = NumDefined = NumUndefined = NumPragma = 0; NumIf = NumElse = NumEndif = 0; |