| /llvm-project-15.0.7/clang/test/Preprocessor/ |
| H A D | pragma-comment-elf.c | 8 #pragma comment(lib) 9 #pragma comment(lib,"foo") 10 __pragma(comment(lib, "bar")) 12 #pragma comment(linker) // expected-warning {{'#pragma comment linker' ignored}} 13 #pragma comment(linker,"foo") // expected-warning {{'#pragma comment linker' ignored}} 16 #pragma comment(user) // expected-warning {{'#pragma comment user' ignored}} 18 __pragma(comment(user, "foo")) // expected-warning {{'#pragma comment user' ignored}} 20 #pragma comment(compiler) // expected-warning {{'#pragma comment compiler' ignored}} 24 #pragma comment(exestr) // expected-warning {{'#pragma comment exestr' ignored}} 28 #pragma comment(foo) // expected-error {{unknown kind of pragma comment}} [all …]
|
| H A D | pragma_microsoft.c | 10 #pragma comment(linker,"foo=" FOO) // expected-error {{pragma comment requires parenthesized identi… 12 #pragma comment(linker," bar=" BAR) 15 #pragma comment( user, "Compiled on " __DATE__ " at " __TIME__ ) 18 #pragma comment(foo) // expected-error {{unknown kind of pragma comment}} 20 #pragma comment(compiler,) // expected-error {{expected string literal in pragma comment}} 23 #pragma comment(foo) // macro expand kind. 25 #pragma comment(foo) x // expected-error {{pragma comment requires}} 28 #pragma comment(user, "foo\abar\nbaz\tsome thing") 44 __pragma(comment(linker," bar=" BAR))
|
| /llvm-project-15.0.7/llvm/test/FileCheck/comment/ |
| H A D | bad-comment-prefix.txt | 1 # Bad comment prefixes are diagnosed. 3 # Check empty comment prefix. 5 RUN: -comment-prefixes= | \ 8 RUN: -comment-prefixes=,FOO | \ 11 RUN: -comment-prefixes=FOO, | \ 14 RUN: -comment-prefixes=FOO,,BAR | \ 18 # Check invalid characters in comment prefix. 20 RUN: -comment-prefixes=. | \ 28 # Check duplicate comment prefixes. 32 COMMENT-PREFIX-DUP: error: supplied comment prefix must be unique among check and comment prefixes:… [all …]
|
| H A D | suppresses-checks.txt | 1 # Comment directives successfully comment out check directives. 3 # Check all default comment prefixes. 4 # Check that a comment directive at the beginning/end of the file is handled. 13 # Check the case of one user-specified comment prefix. 14 # Check that a comment directive not at the beginning of a line is handled. 19 RUN: FileCheck -dump-input=never -vv %t-2.chk -comment-prefixes=MY-PREFIX < %t-2.in 2>&1 | \ 22 # Check the case of multiple user-specified comment prefixes. 29 RUN: FileCheck -dump-input=never -vv %t-3.chk -comment-prefixes=Foo_1,Bar_2 \ 30 RUN: -comment-prefixes=Baz_3 < %t-3.in 2>&1 | \
|
| H A D | unused-comment-prefixes.txt | 1 # Not using comment directives is always fine. 6 # Check the case of default comment prefixes. 10 # Specifying non-default comment prefixes doesn't mean you have to use them. 14 RUN: FileCheck -dump-input=never -vv -comment-prefixes=FOO %t.chk < %t.in 2>&1 | FileCheck %s
|
| /llvm-project-15.0.7/clang/docs/tools/ |
| H A D | dump_ast_matchers.py | 92 comment = m.group(1) 97 comment = re.sub(r'^\\[^\s]+\n', r'', comment, flags=re.M) 101 comment = re.sub(r'\\see', r'See also:', comment) 104 comment = re.sub(r'\\[^\s]+\s+', r'', comment) 105 return comment 262 comment += """ 331 comment += """ 430 if not comment: 460 comment = '' variable 469 comment = '' variable [all …]
|
| H A D | dump_format_style.py | 95 self.comment = comment.strip() 115 def __init__(self, name, comment): argument 117 self.comment = comment.strip() 124 def __init__(self, name, comment): argument 126 self.comment = comment.strip() 134 def __init__(self, name, comment): argument 136 self.comment = comment.strip() 145 self.comment = comment 159 self.comment = comment 236 comment = '' [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | pragma-comment.c | 10 #pragma comment(lib, "msvcrt.lib") 11 #pragma comment(lib, "kernel32") 12 #pragma comment(lib, "USER32.LIB") 13 #pragma comment(lib, "with space") 16 #pragma comment(linker," /bar=" BAR) 17 #pragma comment(linker," /foo=\"foo bar\"")
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/ |
| H A D | elf.metadata.ll | 4 ; CHECK: Name: .AMDGPU.comment.info_1 14 ; CHECK: Name: .AMDGPU.comment.info_2 24 ; CHECK: Name: .AMDGPU.comment.info_3 37 ; CHECK: Section: .AMDGPU.comment.info_1 44 ; CHECK: Section: .AMDGPU.comment.info_2 51 ; CHECK: Section: .AMDGPU.comment.info_3 54 … 826559809, i32 826559809, i32 826559809, i32 826559809], align 1, section ".AMDGPU.comment.info_1" 55 … 843337025, i32 843337025, i32 843337025, i32 843337025], align 1, section ".AMDGPU.comment.info_2" 56 … 860114241, i32 860114241, i32 860114241, i32 860114241], align 1, section ".AMDGPU.comment.info_3"
|
| H A D | inline-asm.ll | 133 ; comment", ""() 150 call void asm sideeffect "; first comment ; second comment", ""() 158 call void asm sideeffect "; first comment;second comment", ""() 168 ; separate comment 171 ; trailing comment 172 ; extra comment 182 ; separate comment 185 ; trailing comment 186 ; extra comment 197 ; separate comment [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-ar/ |
| H A D | mri-comments.test | 1 # Test different MRI comment formats and white space. 6 RUN: echo "create %t/mri.ar;comment" > %t/script.mri 7 RUN: echo "addmod %t/elf.o * comment" >> %t/script.mri 8 RUN: echo "; comment" >> %t/script.mri 9 RUN: echo " ;comment" >> %t/script.mri 10 RUN: echo "* comment" >> %t/script.mri 11 RUN: echo " *comment" >> %t/script.mri
|
| H A D | mri-end.test | 15 # RUN: llvm-ar -M < comment.mri 16 # RUN: llvm-ar -M < comment-end.mri 48 #--- comment.mri 49 ; a comment 51 #--- comment-end.mri 52 ; a comment
|
| /llvm-project-15.0.7/clang-tools-extra/test/pp-trace/ |
| H A D | pp-trace-pragma-ms.cpp | 3 #pragma comment(compiler, "compiler comment") 4 #pragma comment(exestr, "exestr comment") 5 #pragma comment(lib, "lib comment") 6 #pragma comment(linker, "linker comment") 7 #pragma comment(user, "user comment")
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Windows/ |
| H A D | tls_init.cpp | 11 #pragma comment (lib, "dbghelp") 42 #pragma comment(linker, "/INCLUDE:_tls_used") 43 #pragma comment(linker, "/INCLUDE:p_thread_callback") 45 #pragma comment(linker, "/INCLUDE:__tls_used") 46 #pragma comment(linker, "/INCLUDE:_p_thread_callback")
|
| /llvm-project-15.0.7/llvm/test/MC/AsmParser/ |
| H A D | inline-comments.ll | 23 call void asm sideeffect "/*isolated c comment*/", "~{dirflag},~{fpsr},~{flags}"() #0 25 ;CHECK: #isolated c comment 31 call void asm sideeffect "/*comment with\0Anewline*/", "~{dirflag},~{fpsr},~{flags}"() #0 33 ;CHECK: #comment with 36 call void asm sideeffect "//isolated line comment", "~{dirflag},~{fpsr},~{flags}"() #0 38 ;CHECK: #isolated line comment 40 call void asm sideeffect "#isolated line comment", "~{dirflag},~{fpsr},~{flags}"() #0 42 ;CHECK: #isolated line comment 72 call void asm sideeffect "//comment with escaped newline\0A", "~{dirflag},~{fpsr},~{flags}"() #0 74 ;CHECK: #comment with escaped newline
|
| H A D | hash-directive.s | 4 # 3 "FILE1" 1 #<- This is a CPP Hash w/ comment 10 # 1 "FILE2" 2 #<- This is a comment 13 nop; # 6 "FILE3" 2 #<- This is a still comment 21 /*comment*/# 6 "FILE5" 2 #<- This is a comment
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/llvm/ |
| H A D | namespace-comment.rst | 1 .. title:: clang-tidy - llvm-namespace-comment 3 llvm-namespace-comment 9 Checks that long namespaces have a closing comment. 34 closing comment if the body of the namespace has more than 40 An unsigned integer specifying the number of spaces before the comment
|
| /llvm-project-15.0.7/llvm/utils/gn/secondary/clang/include/clang/AST/ |
| H A D | BUILD.gn | 64 args = [ "-gen-clang-comment-nodes" ] 69 args = [ "-gen-clang-comment-html-tags" ] 73 args = [ "-gen-clang-comment-html-tags-properties" ] 78 args = [ "-gen-clang-comment-html-named-character-references" ] 82 args = [ "-gen-clang-comment-command-info" ] 87 args = [ "-gen-clang-comment-command-list" ]
|
| /llvm-project-15.0.7/.github/workflows/ |
| H A D | issue-release-workflow.yml | 6 # This comment will attempt to cherry-pick the given commits to the latest 12 # This comment will create a pull request from <branch> to the latest release 27 …DY: ${{ github.event.action == 'opened' && github.event.issue.body || github.event.comment.body }} 35 !startswith(github.event.comment.body, '<!--IGNORE-->') && 36 …contains(github.event.action == 'opened' && github.event.issue.body || github.event.comment.body, … 69 !startswith(github.event.comment.body, '<!--IGNORE-->') && 70 contains(github.event.comment.body, '/branch')
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | localization-aggressive.m | 13 #define NSLocalizedString(key, comment) \ 15 #define NSLocalizedStringFromTable(key, tbl, comment) \ 17 #define NSLocalizedStringFromTableInBundle(key, tbl, bundle, comment) \ 19 #define NSLocalizedStringWithDefaultValue(key, tbl, bundle, val, comment) \ 245 …; // expected-warning {{Localized string macro should include a non-empty comment for translators}} 246 …; // expected-warning {{Localized string macro should include a non-empty comment for translators}} 251 …; // expected-warning {{Localized string macro should include a non-empty comment for translators}} 263 …; // expected-warning {{Localized string macro should include a non-empty comment for translators}} 264 … // expected-warning {{Localized string macro should include a non-empty comment for translators}} 269 …; // expected-warning {{Localized string macro should include a non-empty comment for translators}} [all …]
|
| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | complete-documentation-properties.m | 57 // CHECK-CC1: {TypedText ReadonlyGetter}{{.*}}(brief comment: This is ReadonlyProperty) 60 // CHECK-CC2: {TypedText GetterInClassExtension}{{.*}}(brief comment: This is PropertyInClassExtens… 63 // CHECK-CC3: {TypedText PropertyInPrimaryClass}{{.*}}(brief comment: This is PropertyInPrimaryClas… 66 // CHECK-CC4: {TypedText Record}{{.*}}(brief comment: This is Record) 69 // CHECK-CC5: {TypedText setThisRecord:}{Placeholder (id)}{{.*}}(brief comment: This is Record) 72 // CHECK-CC6: {TypedText GetterInClassExtension}{{.*}}(brief comment: This is PropertyInClassExtens… 91 // CHECK-CC7: {TypedText ReadonlyGetter}{{.*}}(brief comment: This is getter = ReadonlyGetter)
|
| /llvm-project-15.0.7/lldb/examples/python/ |
| H A D | gdb_disassemble.py | 17 comment = inst.comment 18 if comment: 19 …+ %-4u> 0x%x %8s %s ; %s" % (name, inst_offset, inst_addr, inst.mnemonic, inst.operands, comment))
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | CMakeLists.txt | 49 clang_tablegen(CommentNodes.inc -gen-clang-comment-nodes 53 clang_tablegen(CommentHTMLTags.inc -gen-clang-comment-html-tags 57 clang_tablegen(CommentHTMLTagsProperties.inc -gen-clang-comment-html-tags-properties 61 clang_tablegen(CommentHTMLNamedCharacterReferences.inc -gen-clang-comment-html-named-character-refe… 65 clang_tablegen(CommentCommandInfo.inc -gen-clang-comment-command-info 69 clang_tablegen(CommentCommandList.inc -gen-clang-comment-command-list
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | warn-documentation.m | 90 // expected-warning@+1 {{'\returns' command used in a comment that is attached to a method returnin… 102 // expected-warning@+2 {{'@method' command should be used in a comment attached to an Objective-C m… 111 // expected-warning@+5 {{'@interface' command should not be used in a comment attached to a non-int… 113 // expected-warning@+5 {{'@coclass' command should not be used in a comment attached to a non-conta… 129 // expected-warning@+6 {{'@method' command should be used in a comment attached to an Objective-C m… 141 // expected-warning@+2 {{'@protocol' command should not be used in a comment attached to a non-prot… 165 // expected-warning@+2 {{'@protocol' command should not be used in a comment attached to a non-prot… 171 // expected-warning@+2 {{'@struct' command should not be used in a comment attached to a non-struct… 203 /// @class Asset <- '@class' may be used in a comment attached to a an interface declaration 216 /// \brief comment [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/profile/ |
| H A D | InstrProfilingPlatformWindows.c | 16 #pragma comment(linker, "/MERGE:.lprfc=.data") 17 #pragma comment(linker, "/MERGE:.lprfd=.data") 18 #pragma comment(linker, "/MERGE:.lprfv=.data") 19 #pragma comment(linker, "/MERGE:.lprfnd=.data")
|