mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Fuzz the CMake listfile lexer (cmListFileLexer) with generated inputs. Tests tokenization of CMakeLists.txt files.
109 lines
1.3 KiB
Plaintext
109 lines
1.3 KiB
Plaintext
# CMake ListFile Lexer Dictionary
|
|
# Keywords and syntax for CMakeLists.txt files
|
|
|
|
# Common commands
|
|
"cmake_minimum_required"
|
|
"project"
|
|
"add_executable"
|
|
"add_library"
|
|
"target_link_libraries"
|
|
"target_include_directories"
|
|
"target_compile_definitions"
|
|
"target_compile_options"
|
|
"set"
|
|
"unset"
|
|
"if"
|
|
"elseif"
|
|
"else"
|
|
"endif"
|
|
"foreach"
|
|
"endforeach"
|
|
"while"
|
|
"endwhile"
|
|
"function"
|
|
"endfunction"
|
|
"macro"
|
|
"endmacro"
|
|
"return"
|
|
"include"
|
|
"find_package"
|
|
"find_library"
|
|
"find_path"
|
|
"find_program"
|
|
"file"
|
|
"message"
|
|
"option"
|
|
"configure_file"
|
|
"install"
|
|
"add_custom_command"
|
|
"add_custom_target"
|
|
"add_subdirectory"
|
|
"list"
|
|
"string"
|
|
"math"
|
|
"get_property"
|
|
"set_property"
|
|
"get_target_property"
|
|
"set_target_properties"
|
|
"add_definitions"
|
|
"add_dependencies"
|
|
|
|
# Syntax elements
|
|
"("
|
|
")"
|
|
"\""
|
|
"[["
|
|
"]]"
|
|
"[=["
|
|
"]=]"
|
|
"[==["
|
|
"]==]"
|
|
"#"
|
|
"#[["
|
|
"#]]"
|
|
"\x0a"
|
|
"\x0d\x0a"
|
|
" "
|
|
"\x09"
|
|
"$"
|
|
"{"
|
|
"}"
|
|
"<"
|
|
">"
|
|
";"
|
|
":"
|
|
"@"
|
|
"\\"
|
|
|
|
# Variables
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"${CMAKE_BINARY_DIR}"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}"
|
|
"${CMAKE_CURRENT_BINARY_DIR}"
|
|
"${PROJECT_NAME}"
|
|
"${PROJECT_SOURCE_DIR}"
|
|
"${PROJECT_BINARY_DIR}"
|
|
"$ENV{}"
|
|
"$CACHE{}"
|
|
|
|
# Generator expressions
|
|
"$<"
|
|
">:"
|
|
"$<TARGET_FILE:"
|
|
"$<TARGET_PROPERTY:"
|
|
"$<BUILD_INTERFACE:"
|
|
"$<INSTALL_INTERFACE:"
|
|
"$<BOOL:"
|
|
"$<AND:"
|
|
"$<OR:"
|
|
"$<NOT:"
|
|
"$<IF:"
|
|
"$<STREQUAL:"
|
|
"$<VERSION_LESS:"
|
|
"$<CONFIG:"
|
|
|
|
# BOMs
|
|
"\xef\xbb\xbf"
|
|
"\xff\xfe"
|
|
"\xfe\xff"
|