reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/unittests/Lex/DependencyDirectivesSourceMinimizerTest.cpp
  102       minimizeSourceToDependencyDirectives("#define MACRO\n\n\n", Out));
  106       minimizeSourceToDependencyDirectives("#define MACRO \n\n\n", Out));
  110       minimizeSourceToDependencyDirectives("#define MACRO a \n\n\n", Out));
  114       minimizeSourceToDependencyDirectives("#define   MACRO\n\n\n", Out));
  121   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#define MACRO()", Out));
  125       minimizeSourceToDependencyDirectives("#define MACRO(a, b...)", Out));
  129       minimizeSourceToDependencyDirectives("#define MACRO content", Out));
  132   ASSERT_FALSE(minimizeSourceToDependencyDirectives(
  136   ASSERT_FALSE(minimizeSourceToDependencyDirectives(
  144   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#define MACRO((a))", Out));
  147   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#define MACRO(", Out));
  151       minimizeSourceToDependencyDirectives("#define MACRO(a * b)", Out));
  158   ASSERT_FALSE(minimizeSourceToDependencyDirectives(
  162   ASSERT_FALSE(minimizeSourceToDependencyDirectives(
  166   ASSERT_FALSE(minimizeSourceToDependencyDirectives(
  170   ASSERT_FALSE(minimizeSourceToDependencyDirectives(
  179       minimizeSourceToDependencyDirectives("#define MACRO(a        \\\n"
  185       minimizeSourceToDependencyDirectives("#define MACRO(a,       \\\n"
  198       minimizeSourceToDependencyDirectives("#define MACRO(a,       \\\r"
  209   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#define MACRO(a,b) \\\n"
  221       minimizeSourceToDependencyDirectives("#define MACRO(a,       \\\r\n"
  234       minimizeSourceToDependencyDirectives("#define MACRO(a,       \\\n\r"
  245   ASSERT_TRUE(minimizeSourceToDependencyDirectives("#define 0\n", Out));
  251   ASSERT_TRUE(minimizeSourceToDependencyDirectives("#define &\n", Out));
  257   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#define AND&\n", Out));
  260   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#define AND\\\n"
  270       minimizeSourceToDependencyDirectives("#define MACRO a/*\n"
  285   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#define MACRO1 \"/*\"\n"
  296   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#ifdef A\n"
  305   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#ifdef A\n"
  330   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#ifdef A\n"
  342   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#pragma A\n", Out));
  345   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#pragma clang\n", Out));
  349       minimizeSourceToDependencyDirectives("#pragma clang module\n", Out));
  352   ASSERT_FALSE(minimizeSourceToDependencyDirectives(
  356   ASSERT_FALSE(minimizeSourceToDependencyDirectives(
  364   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#include \"A\"\n", Out));
  367   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#include <A>\n", Out));
  371       minimizeSourceToDependencyDirectives("#include_next <A>\n", Out));
  374   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#import <A>\n", Out));
  378       minimizeSourceToDependencyDirectives("#__include_macros <A>\n", Out));
  385   ASSERT_FALSE(minimizeSourceToDependencyDirectives("@import A;\n", Out));
  388   ASSERT_FALSE(minimizeSourceToDependencyDirectives(" @ import  A;\n", Out));
  391   ASSERT_FALSE(minimizeSourceToDependencyDirectives("@import A\n;", Out));
  394   ASSERT_FALSE(minimizeSourceToDependencyDirectives("@import A.B;\n", Out));
  397   ASSERT_FALSE(minimizeSourceToDependencyDirectives(
  405   ASSERT_TRUE(minimizeSourceToDependencyDirectives("@import A\n", Out));
  406   ASSERT_TRUE(minimizeSourceToDependencyDirectives("@import MACRO(A);\n", Out));
  407   ASSERT_TRUE(minimizeSourceToDependencyDirectives("@import \" \";\n", Out));
  413   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#ifndef GUARD\n"
  423   bool RawStringLiteralResult = minimizeSourceToDependencyDirectives(
  436   bool RawStringLiteralResult2 = minimizeSourceToDependencyDirectives(
  453   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#if\\\n"
  463   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#define GUA\\\n"
  468   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#define GUA\\\r"
  473   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#define GUA\\\n"
  483   ASSERT_FALSE(minimizeSourceToDependencyDirectives("#define A 1 + \\  \n"
  503     ASSERT_FALSE(minimizeSourceToDependencyDirectives(Source, Out));
  517     ASSERT_FALSE(minimizeSourceToDependencyDirectives(Source, Out));
  532   ASSERT_FALSE(minimizeSourceToDependencyDirectives(Source, Out));
  545   ASSERT_FALSE(minimizeSourceToDependencyDirectives(Source, Out));
  556   ASSERT_FALSE(minimizeSourceToDependencyDirectives(Source, Out));
  569   ASSERT_FALSE(minimizeSourceToDependencyDirectives(Source, Out));
  593   ASSERT_FALSE(minimizeSourceToDependencyDirectives(Source, Out));
  607   ASSERT_FALSE(minimizeSourceToDependencyDirectives(Source, Out));
  618   ASSERT_FALSE(minimizeSourceToDependencyDirectives(Source, Out));
  629   ASSERT_FALSE(minimizeSourceToDependencyDirectives(Source, Out));
  633   ASSERT_FALSE(minimizeSourceToDependencyDirectives(Source, Out));
  637   ASSERT_FALSE(minimizeSourceToDependencyDirectives(Source, Out));