]> granicus.if.org Git - clang/commitdiff
Try to fix modules build
authorMatthias Braun <matze@braunis.de>
Sat, 15 Jul 2017 00:29:25 +0000 (00:29 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 15 Jul 2017 00:29:25 +0000 (00:29 +0000)
Module builds somehow report an ambiguity between clang::Diagnostic and
clang::Tooling::Diagnostic. It seems as if one of the additional headers
brought in by the module brings the clang namespace to the toplevel. I
could not find out the reason for that, so for now I go with the simple
fix to bring the build back to green.

rdar://33321397

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308071 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Tooling/DiagnosticsYamlTest.cpp

index 06b60202b97ecf3577d9e95f9f966c1cf035254a..83e09eaeef2dcf4bb1cf29bcd06bacef17777034 100644 (file)
@@ -18,6 +18,7 @@
 
 using namespace llvm;
 using namespace clang::tooling;
+using clang::tooling::Diagnostic;
 
 static Diagnostic makeDiagnostic(StringRef DiagnosticName,
                                  const std::string &Message, int FileOffset,