PP: Rationalize return values of MacroExpand.
This results in better error recovery, including fewer crashes on badly formed PP input.
This commit is contained in:
parent
9cc81de096
commit
802c62bca4
8 changed files with 78 additions and 32 deletions
1
gtests/Pp.FromFile.cpp
Normal file → Executable file
1
gtests/Pp.FromFile.cpp
Normal file → Executable file
|
|
@ -50,6 +50,7 @@ TEST_P(PreprocessingTest, FromFile)
|
|||
INSTANTIATE_TEST_CASE_P(
|
||||
Glsl, PreprocessingTest,
|
||||
::testing::ValuesIn(std::vector<std::string>({
|
||||
"preprocessor.bad_arg.vert",
|
||||
"preprocessor.cpp_style_line_directive.vert",
|
||||
"preprocessor.cpp_style___FILE__.vert",
|
||||
"preprocessor.edge_cases.vert",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue