[cfe-commits] r156290 - in /cfe/trunk: include/clang/Sema/Sema.h lib/Sema/SemaAccess.cpp
John McCall
rjmccall at apple.com
Sun May 6 23:16:49 PDT 2012
Author: rjmccall
Date: Mon May 7 01:16:49 2012
New Revision: 156290
URL: http://llvm.org/viewvc/llvm-project?rev=156290&view=rev
Log:
There is no reason for these methods to be out-of-line.
Modified:
cfe/trunk/include/clang/Sema/Sema.h
cfe/trunk/lib/Sema/SemaAccess.cpp
Modified: cfe/trunk/include/clang/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Sema.h?rev=156290&r1=156289&r2=156290&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Sema.h (original)
+++ cfe/trunk/include/clang/Sema/Sema.h Mon May 7 01:16:49 2012
@@ -4422,8 +4422,17 @@
}
};
- void ActOnStartSuppressingAccessChecks();
- void ActOnStopSuppressingAccessChecks();
+ void ActOnStartSuppressingAccessChecks() {
+ assert(!SuppressAccessChecking &&
+ "Tried to start access check suppression when already started.");
+ SuppressAccessChecking = true;
+ }
+
+ void ActOnStopSuppressingAccessChecks() {
+ assert(SuppressAccessChecking &&
+ "Tried to stop access check suprression when already stopped.");
+ SuppressAccessChecking = false;
+ }
enum AbstractDiagSelID {
AbstractNone = -1,
Modified: cfe/trunk/lib/Sema/SemaAccess.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaAccess.cpp?rev=156290&r1=156289&r2=156290&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaAccess.cpp (original)
+++ cfe/trunk/lib/Sema/SemaAccess.cpp Mon May 7 01:16:49 2012
@@ -1836,15 +1836,3 @@
return true;
}
-
-void Sema::ActOnStartSuppressingAccessChecks() {
- assert(!SuppressAccessChecking &&
- "Tried to start access check suppression when already started.");
- SuppressAccessChecking = true;
-}
-
-void Sema::ActOnStopSuppressingAccessChecks() {
- assert(SuppressAccessChecking &&
- "Tried to stop access check suprression when already stopped.");
- SuppressAccessChecking = false;
-}
More information about the cfe-commits
mailing list