Fix grammar.

llvm-svn: 163828
This commit is contained in:
Ted Kremenek 2012-09-13 19:48:51 +00:00
parent 32a56fa3ba
commit 5371c73cdf
1 changed files with 4 additions and 4 deletions

View File

@ -70,10 +70,10 @@ void MacOSXAPIChecker::CheckDispatchOnce(CheckerContext &C, const CallExpr *CE,
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)