From 0afcaf1630f8767953f2266e98fa4ccdfa588e3c Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 30 Nov 2018 18:43:02 +0000 Subject: [PATCH] Move AST tests into their own test directory; NFC. This moves everything primarily testing the functionality of -ast-dump and -ast-print into their own directory, rather than leaving the tests spread around the testing directory. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348017 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/{Misc => AST}/Inputs/module.modulemap | 0 test/{Misc => AST}/ast-dump-arm-attr.c | 0 test/{Misc => AST}/ast-dump-attr.cpp | 0 test/{Misc => AST}/ast-dump-attr.m | 0 test/{Misc => AST}/ast-dump-c-attr.c | 0 test/{Misc => AST}/ast-dump-color.cpp | 0 test/{Misc => AST}/ast-dump-comment.cpp | 0 test/{Misc => AST}/ast-dump-decl-stmts.cpp | 0 test/{Misc => AST}/ast-dump-decl.c | 0 test/{Misc => AST}/ast-dump-decl.cpp | 0 test/{Misc => AST}/ast-dump-decl.m | 0 test/{Misc => AST}/ast-dump-decl.mm | 0 test/{Misc => AST}/ast-dump-funcs.cpp | 0 test/{Misc => AST}/ast-dump-invalid.cpp | 0 test/{Misc => AST}/ast-dump-lookups.cpp | 0 test/{Misc => AST}/ast-dump-msp430-attr.c | 0 test/{Misc => AST}/ast-dump-pipe.cl | 0 test/{Misc => AST}/ast-dump-stmt.c | 0 test/{Misc => AST}/ast-dump-stmt.cpp | 0 test/{Misc => AST}/ast-dump-stmt.m | 0 test/{Misc => AST}/ast-dump-templates.cpp | 0 test/{Misc => AST}/ast-dump-wchar.cpp | 0 test/{Misc => AST}/ast-print-attr.c | 0 test/{Misc => AST}/ast-print-bool.c | 0 test/{Misc => AST}/ast-print-char-literal.cpp | 0 test/{Misc => AST}/ast-print-enum-decl.c | 0 test/{Misc => AST}/ast-print-objectivec.m | 0 test/{Misc => AST}/ast-print-out-of-line-func.cpp | 0 test/{Misc => AST}/ast-print-pragmas-xfail.cpp | 0 test/{Misc => AST}/ast-print-pragmas.cpp | 0 test/{Misc => AST}/ast-print-record-decl.c | 0 test/{Misc => AST}/attr-print-emit.cpp | 0 test/{Sema => AST}/attr-target-ast.c | 0 test/{SemaCXX => AST}/auto-pragma.cpp | 0 test/{SemaObjC => AST}/bool-type.m | 0 test/{Sema => AST}/builtins-arm-strex-rettype.c | 0 test/{Sema => AST}/c-casts.c | 0 test/{SemaObjC => AST}/category-attribute.m | 0 test/{SemaCXX => AST}/coroutine-source-location-crash.cpp | 2 +- test/{OpenMP => AST}/dump.cpp | 0 test/{SemaObjC => AST}/finally-msvc.m | 0 test/{Frontend => AST}/fixed_point.c | 0 test/{Frontend => AST}/fixed_point_to_string.c | 0 test/{Frontend => AST}/float16.cpp | 0 test/{SemaObjC => AST}/foreachtemplatized.mm | 0 test/{Sema => AST}/implicit-cast-dump.c | 0 test/{Sema => AST}/multistep-explicit-cast.c | 0 test/{SemaCXX => AST}/multistep-explicit-cast.cpp | 0 test/{Parser => AST}/objc-default-ctor-init.mm | 0 test/{Misc => AST}/pragma-attribute-cxx-subject-match-rules.cpp | 0 test/{Misc => AST}/pragma-attribute-objc-subject-match-rules.m | 0 test/{SemaObjC => AST}/property-atomic-bool.m | 0 test/{Sema => AST}/rdr6094103-unordered-compare-promote.c | 0 test/{SemaCXX => AST}/sourceranges.cpp | 0 test/{SemaCXX => AST}/template-implicit-vars.cpp | 0 test/{Sema => AST}/variadic-promotion.c | 0 56 files changed, 1 insertion(+), 1 deletion(-) rename test/{Misc => AST}/Inputs/module.modulemap (100%) rename test/{Misc => AST}/ast-dump-arm-attr.c (100%) rename test/{Misc => AST}/ast-dump-attr.cpp (100%) rename test/{Misc => AST}/ast-dump-attr.m (100%) rename test/{Misc => AST}/ast-dump-c-attr.c (100%) rename test/{Misc => AST}/ast-dump-color.cpp (100%) rename test/{Misc => AST}/ast-dump-comment.cpp (100%) rename test/{Misc => AST}/ast-dump-decl-stmts.cpp (100%) rename test/{Misc => AST}/ast-dump-decl.c (100%) rename test/{Misc => AST}/ast-dump-decl.cpp (100%) rename test/{Misc => AST}/ast-dump-decl.m (100%) rename test/{Misc => AST}/ast-dump-decl.mm (100%) rename test/{Misc => AST}/ast-dump-funcs.cpp (100%) rename test/{Misc => AST}/ast-dump-invalid.cpp (100%) rename test/{Misc => AST}/ast-dump-lookups.cpp (100%) rename test/{Misc => AST}/ast-dump-msp430-attr.c (100%) rename test/{Misc => AST}/ast-dump-pipe.cl (100%) rename test/{Misc => AST}/ast-dump-stmt.c (100%) rename test/{Misc => AST}/ast-dump-stmt.cpp (100%) rename test/{Misc => AST}/ast-dump-stmt.m (100%) rename test/{Misc => AST}/ast-dump-templates.cpp (100%) rename test/{Misc => AST}/ast-dump-wchar.cpp (100%) rename test/{Misc => AST}/ast-print-attr.c (100%) rename test/{Misc => AST}/ast-print-bool.c (100%) rename test/{Misc => AST}/ast-print-char-literal.cpp (100%) rename test/{Misc => AST}/ast-print-enum-decl.c (100%) rename test/{Misc => AST}/ast-print-objectivec.m (100%) rename test/{Misc => AST}/ast-print-out-of-line-func.cpp (100%) rename test/{Misc => AST}/ast-print-pragmas-xfail.cpp (100%) rename test/{Misc => AST}/ast-print-pragmas.cpp (100%) rename test/{Misc => AST}/ast-print-record-decl.c (100%) rename test/{Misc => AST}/attr-print-emit.cpp (100%) rename test/{Sema => AST}/attr-target-ast.c (100%) rename test/{SemaCXX => AST}/auto-pragma.cpp (100%) rename test/{SemaObjC => AST}/bool-type.m (100%) rename test/{Sema => AST}/builtins-arm-strex-rettype.c (100%) rename test/{Sema => AST}/c-casts.c (100%) rename test/{SemaObjC => AST}/category-attribute.m (100%) rename test/{SemaCXX => AST}/coroutine-source-location-crash.cpp (95%) rename test/{OpenMP => AST}/dump.cpp (100%) rename test/{SemaObjC => AST}/finally-msvc.m (100%) rename test/{Frontend => AST}/fixed_point.c (100%) rename test/{Frontend => AST}/fixed_point_to_string.c (100%) rename test/{Frontend => AST}/float16.cpp (100%) rename test/{SemaObjC => AST}/foreachtemplatized.mm (100%) rename test/{Sema => AST}/implicit-cast-dump.c (100%) rename test/{Sema => AST}/multistep-explicit-cast.c (100%) rename test/{SemaCXX => AST}/multistep-explicit-cast.cpp (100%) rename test/{Parser => AST}/objc-default-ctor-init.mm (100%) rename test/{Misc => AST}/pragma-attribute-cxx-subject-match-rules.cpp (100%) rename test/{Misc => AST}/pragma-attribute-objc-subject-match-rules.m (100%) rename test/{SemaObjC => AST}/property-atomic-bool.m (100%) rename test/{Sema => AST}/rdr6094103-unordered-compare-promote.c (100%) rename test/{SemaCXX => AST}/sourceranges.cpp (100%) rename test/{SemaCXX => AST}/template-implicit-vars.cpp (100%) rename test/{Sema => AST}/variadic-promotion.c (100%) diff --git a/test/Misc/Inputs/module.modulemap b/test/AST/Inputs/module.modulemap similarity index 100% rename from test/Misc/Inputs/module.modulemap rename to test/AST/Inputs/module.modulemap diff --git a/test/Misc/ast-dump-arm-attr.c b/test/AST/ast-dump-arm-attr.c similarity index 100% rename from test/Misc/ast-dump-arm-attr.c rename to test/AST/ast-dump-arm-attr.c diff --git a/test/Misc/ast-dump-attr.cpp b/test/AST/ast-dump-attr.cpp similarity index 100% rename from test/Misc/ast-dump-attr.cpp rename to test/AST/ast-dump-attr.cpp diff --git a/test/Misc/ast-dump-attr.m b/test/AST/ast-dump-attr.m similarity index 100% rename from test/Misc/ast-dump-attr.m rename to test/AST/ast-dump-attr.m diff --git a/test/Misc/ast-dump-c-attr.c b/test/AST/ast-dump-c-attr.c similarity index 100% rename from test/Misc/ast-dump-c-attr.c rename to test/AST/ast-dump-c-attr.c diff --git a/test/Misc/ast-dump-color.cpp b/test/AST/ast-dump-color.cpp similarity index 100% rename from test/Misc/ast-dump-color.cpp rename to test/AST/ast-dump-color.cpp diff --git a/test/Misc/ast-dump-comment.cpp b/test/AST/ast-dump-comment.cpp similarity index 100% rename from test/Misc/ast-dump-comment.cpp rename to test/AST/ast-dump-comment.cpp diff --git a/test/Misc/ast-dump-decl-stmts.cpp b/test/AST/ast-dump-decl-stmts.cpp similarity index 100% rename from test/Misc/ast-dump-decl-stmts.cpp rename to test/AST/ast-dump-decl-stmts.cpp diff --git a/test/Misc/ast-dump-decl.c b/test/AST/ast-dump-decl.c similarity index 100% rename from test/Misc/ast-dump-decl.c rename to test/AST/ast-dump-decl.c diff --git a/test/Misc/ast-dump-decl.cpp b/test/AST/ast-dump-decl.cpp similarity index 100% rename from test/Misc/ast-dump-decl.cpp rename to test/AST/ast-dump-decl.cpp diff --git a/test/Misc/ast-dump-decl.m b/test/AST/ast-dump-decl.m similarity index 100% rename from test/Misc/ast-dump-decl.m rename to test/AST/ast-dump-decl.m diff --git a/test/Misc/ast-dump-decl.mm b/test/AST/ast-dump-decl.mm similarity index 100% rename from test/Misc/ast-dump-decl.mm rename to test/AST/ast-dump-decl.mm diff --git a/test/Misc/ast-dump-funcs.cpp b/test/AST/ast-dump-funcs.cpp similarity index 100% rename from test/Misc/ast-dump-funcs.cpp rename to test/AST/ast-dump-funcs.cpp diff --git a/test/Misc/ast-dump-invalid.cpp b/test/AST/ast-dump-invalid.cpp similarity index 100% rename from test/Misc/ast-dump-invalid.cpp rename to test/AST/ast-dump-invalid.cpp diff --git a/test/Misc/ast-dump-lookups.cpp b/test/AST/ast-dump-lookups.cpp similarity index 100% rename from test/Misc/ast-dump-lookups.cpp rename to test/AST/ast-dump-lookups.cpp diff --git a/test/Misc/ast-dump-msp430-attr.c b/test/AST/ast-dump-msp430-attr.c similarity index 100% rename from test/Misc/ast-dump-msp430-attr.c rename to test/AST/ast-dump-msp430-attr.c diff --git a/test/Misc/ast-dump-pipe.cl b/test/AST/ast-dump-pipe.cl similarity index 100% rename from test/Misc/ast-dump-pipe.cl rename to test/AST/ast-dump-pipe.cl diff --git a/test/Misc/ast-dump-stmt.c b/test/AST/ast-dump-stmt.c similarity index 100% rename from test/Misc/ast-dump-stmt.c rename to test/AST/ast-dump-stmt.c diff --git a/test/Misc/ast-dump-stmt.cpp b/test/AST/ast-dump-stmt.cpp similarity index 100% rename from test/Misc/ast-dump-stmt.cpp rename to test/AST/ast-dump-stmt.cpp diff --git a/test/Misc/ast-dump-stmt.m b/test/AST/ast-dump-stmt.m similarity index 100% rename from test/Misc/ast-dump-stmt.m rename to test/AST/ast-dump-stmt.m diff --git a/test/Misc/ast-dump-templates.cpp b/test/AST/ast-dump-templates.cpp similarity index 100% rename from test/Misc/ast-dump-templates.cpp rename to test/AST/ast-dump-templates.cpp diff --git a/test/Misc/ast-dump-wchar.cpp b/test/AST/ast-dump-wchar.cpp similarity index 100% rename from test/Misc/ast-dump-wchar.cpp rename to test/AST/ast-dump-wchar.cpp diff --git a/test/Misc/ast-print-attr.c b/test/AST/ast-print-attr.c similarity index 100% rename from test/Misc/ast-print-attr.c rename to test/AST/ast-print-attr.c diff --git a/test/Misc/ast-print-bool.c b/test/AST/ast-print-bool.c similarity index 100% rename from test/Misc/ast-print-bool.c rename to test/AST/ast-print-bool.c diff --git a/test/Misc/ast-print-char-literal.cpp b/test/AST/ast-print-char-literal.cpp similarity index 100% rename from test/Misc/ast-print-char-literal.cpp rename to test/AST/ast-print-char-literal.cpp diff --git a/test/Misc/ast-print-enum-decl.c b/test/AST/ast-print-enum-decl.c similarity index 100% rename from test/Misc/ast-print-enum-decl.c rename to test/AST/ast-print-enum-decl.c diff --git a/test/Misc/ast-print-objectivec.m b/test/AST/ast-print-objectivec.m similarity index 100% rename from test/Misc/ast-print-objectivec.m rename to test/AST/ast-print-objectivec.m diff --git a/test/Misc/ast-print-out-of-line-func.cpp b/test/AST/ast-print-out-of-line-func.cpp similarity index 100% rename from test/Misc/ast-print-out-of-line-func.cpp rename to test/AST/ast-print-out-of-line-func.cpp diff --git a/test/Misc/ast-print-pragmas-xfail.cpp b/test/AST/ast-print-pragmas-xfail.cpp similarity index 100% rename from test/Misc/ast-print-pragmas-xfail.cpp rename to test/AST/ast-print-pragmas-xfail.cpp diff --git a/test/Misc/ast-print-pragmas.cpp b/test/AST/ast-print-pragmas.cpp similarity index 100% rename from test/Misc/ast-print-pragmas.cpp rename to test/AST/ast-print-pragmas.cpp diff --git a/test/Misc/ast-print-record-decl.c b/test/AST/ast-print-record-decl.c similarity index 100% rename from test/Misc/ast-print-record-decl.c rename to test/AST/ast-print-record-decl.c diff --git a/test/Misc/attr-print-emit.cpp b/test/AST/attr-print-emit.cpp similarity index 100% rename from test/Misc/attr-print-emit.cpp rename to test/AST/attr-print-emit.cpp diff --git a/test/Sema/attr-target-ast.c b/test/AST/attr-target-ast.c similarity index 100% rename from test/Sema/attr-target-ast.c rename to test/AST/attr-target-ast.c diff --git a/test/SemaCXX/auto-pragma.cpp b/test/AST/auto-pragma.cpp similarity index 100% rename from test/SemaCXX/auto-pragma.cpp rename to test/AST/auto-pragma.cpp diff --git a/test/SemaObjC/bool-type.m b/test/AST/bool-type.m similarity index 100% rename from test/SemaObjC/bool-type.m rename to test/AST/bool-type.m diff --git a/test/Sema/builtins-arm-strex-rettype.c b/test/AST/builtins-arm-strex-rettype.c similarity index 100% rename from test/Sema/builtins-arm-strex-rettype.c rename to test/AST/builtins-arm-strex-rettype.c diff --git a/test/Sema/c-casts.c b/test/AST/c-casts.c similarity index 100% rename from test/Sema/c-casts.c rename to test/AST/c-casts.c diff --git a/test/SemaObjC/category-attribute.m b/test/AST/category-attribute.m similarity index 100% rename from test/SemaObjC/category-attribute.m rename to test/AST/category-attribute.m diff --git a/test/SemaCXX/coroutine-source-location-crash.cpp b/test/AST/coroutine-source-location-crash.cpp similarity index 95% rename from test/SemaCXX/coroutine-source-location-crash.cpp rename to test/AST/coroutine-source-location-crash.cpp index 04fb1d45c5..ddccb61306 100644 --- a/test/SemaCXX/coroutine-source-location-crash.cpp +++ b/test/AST/coroutine-source-location-crash.cpp @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -std=c++14 -fcoroutines-ts \ // RUN: -fsyntax-only -ast-dump | FileCheck %s -#include "Inputs/std-coroutine.h" +#include "../SemaCXX/Inputs/std-coroutine.h" using namespace std::experimental; diff --git a/test/OpenMP/dump.cpp b/test/AST/dump.cpp similarity index 100% rename from test/OpenMP/dump.cpp rename to test/AST/dump.cpp diff --git a/test/SemaObjC/finally-msvc.m b/test/AST/finally-msvc.m similarity index 100% rename from test/SemaObjC/finally-msvc.m rename to test/AST/finally-msvc.m diff --git a/test/Frontend/fixed_point.c b/test/AST/fixed_point.c similarity index 100% rename from test/Frontend/fixed_point.c rename to test/AST/fixed_point.c diff --git a/test/Frontend/fixed_point_to_string.c b/test/AST/fixed_point_to_string.c similarity index 100% rename from test/Frontend/fixed_point_to_string.c rename to test/AST/fixed_point_to_string.c diff --git a/test/Frontend/float16.cpp b/test/AST/float16.cpp similarity index 100% rename from test/Frontend/float16.cpp rename to test/AST/float16.cpp diff --git a/test/SemaObjC/foreachtemplatized.mm b/test/AST/foreachtemplatized.mm similarity index 100% rename from test/SemaObjC/foreachtemplatized.mm rename to test/AST/foreachtemplatized.mm diff --git a/test/Sema/implicit-cast-dump.c b/test/AST/implicit-cast-dump.c similarity index 100% rename from test/Sema/implicit-cast-dump.c rename to test/AST/implicit-cast-dump.c diff --git a/test/Sema/multistep-explicit-cast.c b/test/AST/multistep-explicit-cast.c similarity index 100% rename from test/Sema/multistep-explicit-cast.c rename to test/AST/multistep-explicit-cast.c diff --git a/test/SemaCXX/multistep-explicit-cast.cpp b/test/AST/multistep-explicit-cast.cpp similarity index 100% rename from test/SemaCXX/multistep-explicit-cast.cpp rename to test/AST/multistep-explicit-cast.cpp diff --git a/test/Parser/objc-default-ctor-init.mm b/test/AST/objc-default-ctor-init.mm similarity index 100% rename from test/Parser/objc-default-ctor-init.mm rename to test/AST/objc-default-ctor-init.mm diff --git a/test/Misc/pragma-attribute-cxx-subject-match-rules.cpp b/test/AST/pragma-attribute-cxx-subject-match-rules.cpp similarity index 100% rename from test/Misc/pragma-attribute-cxx-subject-match-rules.cpp rename to test/AST/pragma-attribute-cxx-subject-match-rules.cpp diff --git a/test/Misc/pragma-attribute-objc-subject-match-rules.m b/test/AST/pragma-attribute-objc-subject-match-rules.m similarity index 100% rename from test/Misc/pragma-attribute-objc-subject-match-rules.m rename to test/AST/pragma-attribute-objc-subject-match-rules.m diff --git a/test/SemaObjC/property-atomic-bool.m b/test/AST/property-atomic-bool.m similarity index 100% rename from test/SemaObjC/property-atomic-bool.m rename to test/AST/property-atomic-bool.m diff --git a/test/Sema/rdr6094103-unordered-compare-promote.c b/test/AST/rdr6094103-unordered-compare-promote.c similarity index 100% rename from test/Sema/rdr6094103-unordered-compare-promote.c rename to test/AST/rdr6094103-unordered-compare-promote.c diff --git a/test/SemaCXX/sourceranges.cpp b/test/AST/sourceranges.cpp similarity index 100% rename from test/SemaCXX/sourceranges.cpp rename to test/AST/sourceranges.cpp diff --git a/test/SemaCXX/template-implicit-vars.cpp b/test/AST/template-implicit-vars.cpp similarity index 100% rename from test/SemaCXX/template-implicit-vars.cpp rename to test/AST/template-implicit-vars.cpp diff --git a/test/Sema/variadic-promotion.c b/test/AST/variadic-promotion.c similarity index 100% rename from test/Sema/variadic-promotion.c rename to test/AST/variadic-promotion.c -- 2.50.1