summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/TestVisitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/Tooling/TestVisitor.h')
-rw-r--r--clang/unittests/Tooling/TestVisitor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Tooling/TestVisitor.h b/clang/unittests/Tooling/TestVisitor.h
index fb6a76ccadd..e7e57d184ed 100644
--- a/clang/unittests/Tooling/TestVisitor.h
+++ b/clang/unittests/Tooling/TestVisitor.h
@@ -52,6 +52,7 @@ public:
/// \brief Runs the current AST visitor over the given code.
bool runOver(StringRef Code, Language L = Lang_CXX) {
std::vector<std::string> Args;
+ Args.push_back("-ffreestanding");
switch (L) {
case Lang_C:
Args.push_back("-x");
OpenPOWER on IntegriCloud