]> granicus.if.org Git - clang/commit
[analyzer] isCLibraryFunction: check that the function is at TU-scope.
authorJordan Rose <jordan_rose@apple.com>
Fri, 2 Nov 2012 23:49:24 +0000 (23:49 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 2 Nov 2012 23:49:24 +0000 (23:49 +0000)
commitd624607d4196e4b37d235daa14699bcb3c1012a6
treeb5de1097eacccc0f7cd8a1e07b728d265ae91db4
parent70ae1226d9a479e56ac716396bdf97dc970ac840
[analyzer] isCLibraryFunction: check that the function is at TU-scope.

Also, Decls already carry a pointer to the ASTContext, so there's no need
to pass an extra argument to the predicate.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167337 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h
lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp
lib/StaticAnalyzer/Core/CheckerContext.cpp