mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 20:56:06 +00:00

When displaying the macro backtrace, ignore some of the backtraces that do not provide extra information to the diagnostic. Typically, if the problem is entirely contained within a macro argument, the macro expansion is often not needed. Also take into account SourceRange's attached to the diagnostic when selecting which backtraces to ignore. Two previous test cases have also been updated. Patch by Zhengkai Wu, with minor formatting fixes. Differential Revision: http://reviews.llvm.org/D11778 llvm-svn: 244788
6 lines
176 B
C
6 lines
176 B
C
// RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck %s
|
|
|
|
#include "macro_arg_slocentry_merge.h"
|
|
|
|
// CHECK: macro_arg_slocentry_merge.h:7:19: error: unknown type name 'win'
|