List of functions in the ude.parsers.build_file_flags namespace.

Entity NameDescription
_is_inside_root
_find_solution_dirFinds the directory of the nearest ancestor containing a *.sln file.
_sub_condition_properties
_eval_atom
_tokenize_condition
_parse_condition_tokens
_eval_condition
_sub_vcxproj_properties
_extract_vcxproj_flagsExtracts include paths and macros from a .vcxproj file.
_extract_bazel_flags
_extract_cmake_flags
_cxx_year
cmake_cxx_standardThe C++ standard a CMakeLists.txt builds with (“c++11”), or None when it names none.

Generated with Flude

Copyright © 2026

Directory & Entity Index

Entity NameSummary / Description
_cxx_year function

Methods

_cxx_year

_cxx_year(two_digits: int) -> int

ParameterTypeDescription
two_digitsint

Generated with Flude

Copyright © 2026

_eval_atom function

Methods

_eval_atom

_eval_atom(atom: str, this_file_dir: str, allowed_root: Optional) -> bool

ParameterTypeDescription
atomstr
this_file_dirstr
allowed_rootOptional

Generated with Flude

Copyright © 2026

_eval_condition function

Methods

_eval_condition

_eval_condition(cond_str: Optional, properties: dict, this_file_dir: str, allowed_root: Optional) -> bool

ParameterTypeDescription
cond_strOptional
propertiesdict
this_file_dirstr
allowed_rootOptional

Generated with Flude

Copyright © 2026

_extract_bazel_flags function

Returns (include_dirs, macros) extracted from a BUILD/BUILD.bazel file’s matching cc_library/cc_binary/cc_test target. Returns ([], []) on any recoverable failure.

Methods

_extract_bazel_flags

_extract_bazel_flags(bazel_build_path: str, target_name: Optional, : *, extended: bool) -> Tuple[List[str], List[str]]

Returns (include_dirs, macros) extracted from a BUILD/BUILD.bazel file’s matching cc_library/cc_binary/cc_test target. Returns ([], []) on any recoverable failure.

ParameterTypeDescription
bazel_build_pathstr
target_nameOptional
*
extendedbool

Generated with Flude

_extract_cmake_flags function

Returns (include_dirs, macros) extracted from a CMakeLists.txt file’s top-level include_directories()/add_definitions() calls (plus target_* and add_compile_definitions when extended=True). Returns ([], []) on any recoverable failure.

Methods

_extract_cmake_flags

_extract_cmake_flags(cmake_lists_path: str, : *, extended: bool) -> Tuple[List[str], List[str]]

Returns (include_dirs, macros) extracted from a CMakeLists.txt file’s top-level include_directories()/add_definitions() calls (plus target_* and add_compile_definitions when extended=True). Returns ([], []) on any recoverable failure.

ParameterTypeDescription
cmake_lists_pathstr
*
extendedbool

Generated with Flude

_extract_vcxproj_flags function

Extracts include paths and macros from a .vcxproj file.

Returns a tuple of (include_paths, macros).

Methods

_extract_vcxproj_flags

_extract_vcxproj_flags(vcxproj_path: str, configuration: Optional, platform: Optional, : *, extended: bool, allowed_root: Optional) -> tuple[List[str], List[str]]

Extracts include paths and macros from a .vcxproj file.

Returns a tuple of (include_paths, macros).

ParameterTypeDescription
vcxproj_pathstr
configurationOptional
platformOptional
*
extendedbool
allowed_rootOptional

Generated with Flude

_find_solution_dir function

Finds the directory of the nearest ancestor containing a *.sln file.

Methods

_find_solution_dir

_find_solution_dir(project_dir: str, allowed_root: Optional) -> Optional[str]

Finds the directory of the nearest ancestor containing a *.sln file.

ParameterTypeDescription
project_dirstr
allowed_rootOptional

Generated with Flude

Copyright © 2026

_is_inside_root function

Returns True if file_path is strictly inside root with symlinks resolved.

Methods

_is_inside_root

_is_inside_root(file_path: Path, root: Optional) -> bool

Returns True if file_path is strictly inside root with symlinks resolved.

ParameterTypeDescription
file_pathPath
rootOptional

Generated with Flude

Copyright © 2026

_parse_condition_tokens function

Methods

_parse_condition_tokens

_parse_condition_tokens(tokens: List], this_file_dir: str, allowed_root: Optional) -> bool

ParameterTypeDescription
tokensList]
this_file_dirstr
allowed_rootOptional

Generated with Flude

Copyright © 2026

_sub_condition_properties function

Methods

_sub_condition_properties

_sub_condition_properties(cond: str, properties: dict, this_file_dir: str) -> str

ParameterTypeDescription
condstr
propertiesdict
this_file_dirstr

Generated with Flude

Copyright © 2026

_sub_vcxproj_properties function

Methods

_sub_vcxproj_properties

_sub_vcxproj_properties(text: str, properties: dict, this_file_dir: str) -> str

ParameterTypeDescription
textstr
propertiesdict
this_file_dirstr

Generated with Flude

Copyright © 2026

_tokenize_condition function

Methods

_tokenize_condition

_tokenize_condition(s: str) -> List[Tuple[str, str]]

ParameterTypeDescription
sstr

Generated with Flude

Copyright © 2026

cmake_cxx_standard function

The C++ standard a CMakeLists.txt builds with (“c++11”), or None when it names none.

Reads literal values only; comments are ignored, nothing is evaluated. set(CMAKE_CXX_STANDARD 11) and CXX_STANDARD 17 in set_target_properties SET the standard – the lowest is taken: a project that raises it for an option keeps a lower default (spdlog: 20 under SPDLOG_USE_STD_FORMAT, else 11). target_compile_features(... cxx_std_11) is only a FLOOR (simdjson’s own CMakeLists.txt: “a floor, not a ceiling”): it raises the standard, and without a set one the build uses the compiler’s default (compiler_default, e.g. “c++17”; when None the floor itself is returned).