]> granicus.if.org Git - clang/commitdiff
Change Preprocessor to keep a copy of LangOptions instead of reference, like ASTContext.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 22 Jul 2009 23:13:42 +0000 (23:13 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 22 Jul 2009 23:13:42 +0000 (23:13 +0000)
Now when creating a Preprocessor we can pass it a temporary LangOptions object instead of having to remember to keep it around.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76815 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Preprocessor.h

index 6d5ed72455b900d8ac9c1761e5f612e93313ef08..f1647afaa3a77c25b034274326d6df1fa8eb3a23 100644 (file)
@@ -49,7 +49,7 @@ class DirectoryLookup;
 ///
 class Preprocessor {
   Diagnostic        *Diags;
-  const LangOptions &Features;
+  LangOptions        Features;
   TargetInfo        &Target;
   FileManager       &FileMgr;
   SourceManager     &SourceMgr;