llvm-project/clang/test
Taewook Oh 0fb5b78892 Use the file name from linemarker for debug info if an input is preprocessed source.
Summary:
Even in the case of the input file is a preprocessed source, clang uses the file name of the preprocesses source for debug info (DW_AT_name attribute for DW_TAG_compile_unit). However, gcc uses the file name specified in the first linemarker instead. This makes more sense because the one specified in the linemarker represents the "actual" source file name.

Clang already uses the file name specified in the first linemarker for Module name (https://github.com/llvm-mirror/clang/blob/master/lib/Frontend/FrontendAction.cpp#L779) if the input is preprocessed. This patch makes clang to use the same value for debug info as well.

Reviewers: compnerd, rnk, dblaikie, rsmith

Reviewed By: rnk

Subscribers: aprantl, cfe-commits

Differential Revision: https://reviews.llvm.org/D36474

llvm-svn: 311037
2017-08-16 19:36:24 +00:00
..
ARCMT clang/test/ARCMT/remap-applying.c: Use %/s on the command line of echo(1). 2017-04-28 05:02:52 +00:00
ASTMerge Revert r299355 "[ASTImporter] Fix for importing unnamed structs" 2017-04-03 21:06:45 +00:00
Analysis Fixup for r310950: Also remove the new instance of %T from html-diags.c 2017-08-15 19:54:04 +00:00
CXX Do not look through pack expansions when looking for unexpanded parameter packs. 2017-08-15 22:58:45 +00:00
CodeCompletion Fixed failing assert in code completion. 2017-07-21 09:24:00 +00:00
CodeGen Use the file name from linemarker for debug info if an input is preprocessed source. 2017-08-16 19:36:24 +00:00
CodeGenCUDA CodeGenModule: Always output wchar_size, check LLVM assumptions. 2017-05-20 01:29:55 +00:00
CodeGenCXX PR19668, PR23034: Fix handling of move constructors and deleted copy 2017-08-16 01:49:53 +00:00
CodeGenCoroutines [coroutines] Evaluate the operand of void `co_return` expressions. 2017-07-31 07:48:13 +00:00
CodeGenObjC Adopt to LLVM API change (llvm.dbg.value no longer has an offset) 2017-07-28 20:21:08 +00:00
CodeGenObjCXX test: fix test for release builds 2017-06-27 18:57:50 +00:00
CodeGenOpenCL Attempt to fix failure in CodeGenOpenCL/atomic-ops.cl again 2017-08-15 17:59:26 +00:00
Coverage [Analyzer] Add support for displaying cross-file diagnostic paths in HTML output 2017-08-03 18:12:22 +00:00
CoverageMapping [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
Driver [Driver] SafeStack does not need a runtime library on Fuchsia 2017-08-16 19:06:05 +00:00
FixIt [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
Format [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
Frontend [ValueTracking] Enabling ValueTracking patch by default (recommit). Part 1. 2017-08-10 11:22:52 +00:00
Headers Add test that we get the correct calling convention and mangling for va_list. 2017-08-16 01:46:46 +00:00
Import This adds the argument --dump-ir to clang-import-test, which allows 2017-08-07 22:27:30 +00:00
Index [index] Update indexing to handle CXXDeductionGuideDecls properly 2017-08-15 17:20:37 +00:00
Integration Tie the macOS tests in test/Integration to the latest macOS SDK 2017-06-02 11:26:35 +00:00
Layout Print nested name specifiers for typedefs and type aliases 2017-03-10 15:04:58 +00:00
Lexer Add missing test for warning added in r310803. 2017-08-16 00:06:07 +00:00
Misc [diagtool] Add ability to pass in the id and return the name for a 2017-08-03 16:13:13 +00:00
Modules [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
OpenMP [OPENMP] Fix for PR28581: OpenMP linear clause - wrong results. 2017-08-16 15:58:46 +00:00
PCH [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
Parser Replace remaining user-visible mentions of C++1z with C++17. 2017-08-13 22:26:53 +00:00
Preprocessor [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
Profile [Profile] Do not assign counters to functions without bodies 2017-06-30 21:02:14 +00:00
Rewriter [Objective-C] Fix non-determinism in clang 2017-07-06 18:49:57 +00:00
Sema Allow pretty platform names in availability attributes 2017-08-15 14:42:01 +00:00
SemaCUDA PR34163: Don't cache an incorrect key function for a class if queried between 2017-08-12 01:46:03 +00:00
SemaCXX PR33082: Improve tracking of unexpanded parameter packs within variadic generic lambdas. 2017-08-15 19:11:21 +00:00
SemaObjC [Sema] Silence -Wobjc-missing-property-synthesis for unavailable properties 2017-08-15 12:40:01 +00:00
SemaObjCXX Fix errored return value in CheckFunctionReturnType and add a fixit hint 2017-05-10 20:03:16 +00:00
SemaOpenCL Remove -finclude-default-header in OpenCL atomic tests 2017-08-15 16:30:31 +00:00
SemaTemplate Replace remaining user-visible mentions of C++1z with C++17. 2017-08-13 22:26:53 +00:00
TableGen
Tooling [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
Unit Change remaining references to lit.util.capture to use subprocess.check_output. 2017-07-06 21:46:47 +00:00
VFS
clang-rename Move ClassReplacements.cpp test from clang-rename tests to the 2017-06-30 16:58:36 +00:00
.clang-format
CMakeLists.txt Clang's tests should depend on clang-diff 2017-07-21 13:12:01 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg [clang] Add abi-breaking-checks support to clang 2017-07-25 23:00:02 +00:00
lit.site.cfg.in [clang] Add abi-breaking-checks support to clang 2017-07-25 23:00:02 +00:00
make_test_dirs.pl