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 | c1f9d828c733ec1eba06d01070735d1f36fda733 (patch) | |
tree | 48615af3823ebc732c7f63a75b4177c3ba02ece7 /lib/Lex/Preprocessor.cpp | |
parent | 1721a2dfc05d081e76d6dd4755d52c96e093dabc (diff) |
implement the microsoft/gnu "__COUNTER__" macro: rdar://4329310
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 097b4542b6..2c9b0b937a 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/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; |