[cfe-commits] r163828 - /cfe/trunk/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp
Ted Kremenek
kremenek at apple.com
Thu Sep 13 12:48:52 PDT 2012
Author: kremenek
Date: Thu Sep 13 14:48:51 2012
New Revision: 163828
URL: http://llvm.org/viewvc/llvm-project?rev=163828&view=rev
Log:
Fix grammar.
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp?rev=163828&r1=163827&r2=163828&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp Thu Sep 13 14:48:51 2012
@@ -70,10 +70,10 @@
BT_dispatchOnce.reset(new BugType("Improper use of 'dispatch_once'",
"Mac OS X API"));
- // Handle _dispatch_once, which in some versions of the OS X SDK that
- // dispatch_once is a macro that wraps a call to _dispatch_once, which
- // then calls the real dispatch_once. Users do not care; they just
- // want the warning at the top-level call.
+ // Handle _dispatch_once. In some versions of the OS X SDK we have the case
+ // that dispatch_once is a macro that wraps a call to _dispatch_once.
+ // _dispatch_once is then a function which then calls the real dispatch_once.
+ // Users do not care; they just want the warning at the top-level call.
if (CE->getLocStart().isMacroID()) {
StringRef TrimmedFName = FName.ltrim("_");
if (TrimmedFName != FName)
More information about the cfe-commits
mailing list