Home
last modified time | relevance | path

Searched refs:tryExpandAsInteger (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMmapWriteExecChecker.cpp52 const std::optional<int> FoundProtRead = tryExpandAsInteger("PROT_READ", PP); in checkASTDecl()
54 tryExpandAsInteger("PROT_WRITE", PP); in checkASTDecl()
55 const std::optional<int> FoundProtExec = tryExpandAsInteger("PROT_EXEC", PP); in checkASTDecl()
H A DBlockInCriticalSectionChecker.cpp410 O_NONBLOCKValue = tryExpandAsInteger( in reportBlockInCritSection()
H A DStreamChecker.cpp620 if (const std::optional<int> OptInt = tryExpandAsInteger("EOF", PP)) in initMacroValues()
624 if (const std::optional<int> OptInt = tryExpandAsInteger("SEEK_SET", PP)) in initMacroValues()
626 if (const std::optional<int> OptInt = tryExpandAsInteger("SEEK_END", PP)) in initMacroValues()
628 if (const std::optional<int> OptInt = tryExpandAsInteger("SEEK_CUR", PP)) in initMacroValues()
H A DUnixAPIChecker.cpp44 std::optional<int> MacroVal = tryExpandAsInteger("O_CREAT", PP); in getCreateFlagValue()
H A DStdLibraryFunctionsChecker.cpp1708 const auto EOFv = tryExpandAsInteger("EOF", PP).value_or(-1); in initFunctionSummaries()
1709 const auto AT_FDCWDv = tryExpandAsInteger("AT_FDCWD", PP).value_or(-100); in initFunctionSummaries()
H A DMallocChecker.cpp3579 tryExpandAsInteger("ZERO_SIZE_PTR", C.getPreprocessor()); in isArgZERO_SIZE_PTR()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCheckerHelpers.h74 std::optional<int> tryExpandAsInteger(StringRef Macro, const Preprocessor &PP);
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp115 std::optional<int> tryExpandAsInteger(StringRef Macro, const Preprocessor &PP) { in tryExpandAsInteger() function