File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -566,6 +566,10 @@ class FindExplicitReferencesTest : public ::testing::Test {
566
566
TU.ExtraArgs .push_back (" -std=c++17" );
567
567
568
568
auto AST = TU.build ();
569
+ for (auto &D : AST.getDiagnostics ()) {
570
+ if (D.Severity > DiagnosticsEngine::Warning)
571
+ ADD_FAILURE () << D << Code;
572
+ }
569
573
570
574
auto *TestDecl = &findDecl (AST, " foo" );
571
575
if (auto *T = llvm::dyn_cast<FunctionTemplateDecl>(TestDecl))
@@ -718,7 +722,7 @@ TEST_F(FindExplicitReferencesTest, All) {
718
722
" 3: targets = {vb}, decl\n " },
719
723
// MemberExpr should know their using declaration.
720
724
{R"cpp(
721
- struct X { void func(int); }
725
+ struct X { void func(int); };
722
726
struct Y : X {
723
727
using X::func;
724
728
};
@@ -824,7 +828,7 @@ TEST_F(FindExplicitReferencesTest, All) {
824
828
void foo() {
825
829
$0^TT<int> $1^x;
826
830
$2^foo<$3^TT>();
827
- $4^foo<$5^vector>()
831
+ $4^foo<$5^vector>();
828
832
$6^foo<$7^TP...>();
829
833
}
830
834
)cpp" ,
@@ -924,7 +928,7 @@ TEST_F(FindExplicitReferencesTest, All) {
924
928
// Namespace aliases should be handled properly.
925
929
{
926
930
R"cpp(
927
- namespace ns { struct Type {} }
931
+ namespace ns { struct Type {}; }
928
932
namespace alias = ns;
929
933
namespace rec_alias = alias;
930
934
You can’t perform that action at this time.
0 commit comments