|
clang 22.0.0git
|
#include "clang/AST/Attr.h"#include "clang/AST/Decl.h"#include "clang/AST/DeclObjC.h"#include "clang/AST/DynamicRecursiveASTVisitor.h"#include "clang/AST/StmtVisitor.h"#include "clang/Lex/Lexer.h"#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"#include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h"#include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"#include "clang/StaticAnalyzer/Core/Checker.h"#include "clang/StaticAnalyzer/Core/CheckerManager.h"#include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h"#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"#include "clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h"#include "llvm/ADT/STLExtras.h"#include "llvm/Support/Unicode.h"#include <optional>Go to the source code of this file.
Macros | |
| #define | NEW_RECEIVER(receiver) |
| #define | ADD_NULLARY_METHOD(receiver, method, argument) |
| #define | ADD_UNARY_METHOD(receiver, method, argument) |
| #define | ADD_METHOD(receiver, method_list, count, argument) |
| #define | LSF_INSERT(function_name) |
| #define | LSM_INSERT_NULLARY(receiver, method_name) |
| #define | LSM_INSERT_UNARY(receiver, method_name) |
| #define | LSM_INSERT_SELECTOR(receiver, method_list, arguments) |
Functions | |
| REGISTER_MAP_WITH_PROGRAMSTATE (LocalizedMemMap, const MemRegion *, LocalizedState) namespace | |
| static bool | isDebuggingName (std::string name) |
| static bool | isDebuggingContext (CheckerContext &C) |
| Returns true when, heuristically, the analyzer may be analyzing debugging code. | |
| static bool | isNSStringType (QualType T, ASTContext &Ctx) |
| #define ADD_METHOD | ( | receiver, | |
| method_list, | |||
| count, | |||
| argument ) |
Definition at line 141 of file LocalizationChecker.cpp.
| #define ADD_NULLARY_METHOD | ( | receiver, | |
| method, | |||
| argument ) |
Definition at line 135 of file LocalizationChecker.cpp.
| #define ADD_UNARY_METHOD | ( | receiver, | |
| method, | |||
| argument ) |
Definition at line 138 of file LocalizationChecker.cpp.
| #define LSF_INSERT | ( | function_name | ) |
Definition at line 603 of file LocalizationChecker.cpp.
| #define LSM_INSERT_NULLARY | ( | receiver, | |
| method_name ) |
Definition at line 604 of file LocalizationChecker.cpp.
| #define LSM_INSERT_SELECTOR | ( | receiver, | |
| method_list, | |||
| arguments ) |
Definition at line 610 of file LocalizationChecker.cpp.
| #define LSM_INSERT_UNARY | ( | receiver, | |
| method_name ) |
Definition at line 607 of file LocalizationChecker.cpp.
| #define NEW_RECEIVER | ( | receiver | ) |
Definition at line 132 of file LocalizationChecker.cpp.
|
static |
Returns true when, heuristically, the analyzer may be analyzing debugging code.
We use this to suppress localization diagnostics in un-localized user interfaces that are only used for debugging and are therefore not user facing.
Definition at line 720 of file LocalizationChecker.cpp.
References clang::C, clang::Decl::getDeclContext(), and isDebuggingName().
|
static |
Definition at line 712 of file LocalizationChecker.cpp.
Referenced by isDebuggingContext().
|
inlinestatic |
Definition at line 892 of file LocalizationChecker.cpp.
References clang::IdentifierTable::get(), clang::NamedDecl::getIdentifier(), clang::ObjCObjectPointerType::getObjectType(), clang::ASTContext::Idents, and clang::T.
| REGISTER_MAP_WITH_PROGRAMSTATE | ( | LocalizedMemMap | , |
| const MemRegion * | , | ||
| LocalizedState | ) |
Definition at line 107 of file LocalizationChecker.cpp.
References clang::ento::BugReporterVisitor::Profile(), and clang::ento::BugReporterVisitor::VisitNode().