[cfe-commits] r76815 - /cfe/trunk/include/clang/Lex/Preprocessor.h

Argiris Kirtzidis akyrtzi at gmail.com
Wed Jul 22 16:13:44 PDT 2009

Author: akirtzidis
Date: Wed Jul 22 18:13:42 2009
New Revision: 76815

URL: http://llvm.org/viewvc/llvm-project?rev=76815&view=rev
Change Preprocessor to keep a copy of LangOptions instead of reference, like ASTContext.

Now when creating a Preprocessor we can pass it a temporary LangOptions object instead of having to remember to keep it around.


Modified: cfe/trunk/include/clang/Lex/Preprocessor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Preprocessor.h?rev=76815&r1=76814&r2=76815&view=diff

--- cfe/trunk/include/clang/Lex/Preprocessor.h (original)
+++ cfe/trunk/include/clang/Lex/Preprocessor.h Wed Jul 22 18:13:42 2009
@@ -49,7 +49,7 @@
 class Preprocessor {
   Diagnostic        *Diags;
-  const LangOptions &Features;
+  LangOptions        Features;
   TargetInfo        &Target;
   FileManager       &FileMgr;
   SourceManager     &SourceMgr;

More information about the cfe-commits mailing list