[cfe-commits] r164337 - /cfe/trunk/include/clang/Analysis/AnalysisContext.h
Ted Kremenek
kremenek at apple.com
Thu Sep 20 17:09:03 PDT 2012
Author: kremenek
Date: Thu Sep 20 19:09:03 2012
New Revision: 164337
URL: http://llvm.org/viewvc/llvm-project?rev=164337&view=rev
Log:
Ensure that the Decl* wrapped by an AnalysisDeclContext cannot be changed after
construction.
Modified:
cfe/trunk/include/clang/Analysis/AnalysisContext.h
Modified: cfe/trunk/include/clang/Analysis/AnalysisContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/AnalysisContext.h?rev=164337&r1=164336&r2=164337&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/AnalysisContext.h (original)
+++ cfe/trunk/include/clang/Analysis/AnalysisContext.h Thu Sep 20 19:09:03 2012
@@ -72,7 +72,7 @@
/// AnalysisDeclContext. This may be null.
AnalysisDeclContextManager *Manager;
- const Decl *D;
+ const Decl * const D;
OwningPtr<CFG> cfg, completeCFG;
OwningPtr<CFGStmtMap> cfgStmtMap;
More information about the cfe-commits
mailing list