ΒΆllvm::Optional<int> tryExpandAsInteger(
    llvm::StringRef Macro,
    const clang::Preprocessor& PP)

Description

Try to parse the value of a defined preprocessor macro. We can only parse simple expressions that consist of an optional minus sign token and then a token for an integer. If we cannot parse the value then None is returned.

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h:71

Parameters

llvm::StringRef Macro
const clang::Preprocessor& PP