mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-30 01:26:06 +00:00

and the nature of a declaration This commit adds an external_source_symbol attribute to Clang. This attribute specifies that a declaration originates from an external source and describes the nature of that source. This attribute will be used to improve IDE features like 'jump-to-definition' for mixed-language projects or project that use auto-generated code. rdar://30423368 Differential Revision: https://reviews.llvm.org/D29819 llvm-svn: 296649
6 lines
176 B
C++
6 lines
176 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
|
|
// expected-no-diagnostics
|
|
|
|
[[clang::external_source_symbol(language="Swift", defined_in="module")]]
|
|
void function() { }
|