<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/lib/Testing/CommandLineArgs.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[NFC][clang] Prefer triple overload of lookupTarget (#162185)</title>
<updated>2025-10-06T23:08:20+00:00</updated>
<author>
<name>Aiden Grossman</name>
<email>aidengrossman@google.com</email>
</author>
<published>2025-10-06T23:08:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=76e71e05d2687f602695931b2fbf25e4e262dcc4'/>
<id>76e71e05d2687f602695931b2fbf25e4e262dcc4</id>
<content type='text'>
The string overload will be deprecated soon, similar to other functions
in TargetRegistry.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The string overload will be deprecated soon, similar to other functions
in TargetRegistry.</pre>
</div>
</content>
</entry>
<entry>
<title>[clang] Avoid creating temporary instances of std::string (NFC) (#140988)</title>
<updated>2025-05-22T03:33:06+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-05-22T03:33:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=bf241e8349f4103af198c2d37eb7d09062fdaae1'/>
<id>bf241e8349f4103af198c2d37eb7d09062fdaae1</id>
<content type='text'>
lookupTarget takes StringRef and internally creates an instance of
std::string with the StringRef as part of constructing Triple, so we
don't need to create temporary instances of std::string on our own.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
lookupTarget takes StringRef and internally creates an instance of
std::string with the StringRef as part of constructing Triple, so we
don't need to create temporary instances of std::string on our own.</pre>
</div>
</content>
</entry>
<entry>
<title>[clang][test] add TestLanguage.def to specify all tested language versions (#94243)</title>
<updated>2024-09-27T11:03:23+00:00</updated>
<author>
<name>Julian Schmidt</name>
<email>git.julian.schmidt@gmail.com</email>
</author>
<published>2024-09-27T11:03:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7dfdca1961aadc75ca397818bfb9bd32f1879248'/>
<id>7dfdca1961aadc75ca397818bfb9bd32f1879248</id>
<content type='text'>
Adds a def file to have a single location where tested language versions
are specified. Removes the need to update multiple locations in the
testing infrastructure to add a new language version to be tested. Test
instatiation can now include all languages without needing to specify
them.
This patch also adds pretty printing for instantiated test names. That
means, that a test instantiated with C++23 will have the name
`...TestSuite/TestName/CXX23` instead ending with some number (index of
the argument for instantiation of the test), which provides a better
experience when encountering a test failure with a specific language
version. The suffix will also contain an `_win` if the target contains
`win`.

---------

Co-authored-by: Sirraide &lt;aeternalmail@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds a def file to have a single location where tested language versions
are specified. Removes the need to update multiple locations in the
testing infrastructure to add a new language version to be tested. Test
instatiation can now include all languages without needing to specify
them.
This patch also adds pretty printing for instantiated test names. That
means, that a test instantiated with C++23 will have the name
`...TestSuite/TestName/CXX23` instead ending with some number (index of
the argument for instantiation of the test), which provides a better
experience when encountering a test failure with a specific language
version. The suffix will also contain an `_win` if the target contains
`win`.

---------

Co-authored-by: Sirraide &lt;aeternalmail@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[clang][ASTMatcher] Add matchers for isExplicitObjectMemberFunction() (#84446)</title>
<updated>2024-03-08T12:57:27+00:00</updated>
<author>
<name>Balazs Benics</name>
<email>benicsbalazs@gmail.com</email>
</author>
<published>2024-03-08T12:57:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7457e2c1535acd548d2619dfb34eb93d27d15908'/>
<id>7457e2c1535acd548d2619dfb34eb93d27d15908</id>
<content type='text'>
Note that this patch will be necessary to fix
`forEachArgumentWithParam()` and `forEachArgumentWithParamType()`
matchers for deducing "this"; which is my true motivation. There the bug
is that with explicit obj params, one should not adjust the number of
arguments in presence of `CXXMethodDecls`, and this causes a mismatch
there mapping the argument to the wrong param. But, I'll come back there
once we have this matcher.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Note that this patch will be necessary to fix
`forEachArgumentWithParam()` and `forEachArgumentWithParamType()`
matchers for deducing "this"; which is my true motivation. There the bug
is that with explicit obj params, one should not adjust the number of
arguments in presence of `CXXMethodDecls`, and this causes a mismatch
there mapping the argument to the wrong param. But, I'll come back there
once we have this matcher.</pre>
</div>
</content>
</entry>
<entry>
<title>[clangd] Move standard options adaptor to CommandMangler</title>
<updated>2023-03-17T10:10:36+00:00</updated>
<author>
<name>Dmitry Polukhin</name>
<email>dmitry.polukhin@gmail.com</email>
</author>
<published>2023-02-16T13:06:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d60d3455eb2b375d026a4aa74c4ba0c38f5d323c'/>
<id>d60d3455eb2b375d026a4aa74c4ba0c38f5d323c</id>
<content type='text'>
There is a discrepancy between how clangd processes CDB loaded from
JSON file on disk and pushed via LSP. Thus the same CDB pushed via
LSP protocol may not work as expected. Some difference between these two
paths is expected but we still need to insert driver mode and target from
binary name and expand response files.

Test Plan: check-clang-tools

Differential Revision: https://reviews.llvm.org/D143436
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is a discrepancy between how clangd processes CDB loaded from
JSON file on disk and pushed via LSP. Thus the same CDB pushed via
LSP protocol may not work as expected. Some difference between these two
paths is expected but we still need to insert driver mode and target from
binary name and expand response files.

Test Plan: check-clang-tools

Differential Revision: https://reviews.llvm.org/D143436
</pre>
</div>
</content>
</entry>
<entry>
<title>[fixup] Handle enum constant `Lang_OBJC` introduced in 4604db94.</title>
<updated>2022-04-23T00:59:17+00:00</updated>
<author>
<name>Volodymyr Sapsai</name>
<email>vsapsai@apple.com</email>
</author>
<published>2022-04-23T00:59:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a7f9f2fea506fa213e4ce9c6230a816cd5bcfa38'/>
<id>a7f9f2fea506fa213e4ce9c6230a816cd5bcfa38</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ASTStructuralEquivalence] Add support for comparing ObjCCategoryDecl.</title>
<updated>2022-04-22T23:51:19+00:00</updated>
<author>
<name>Volodymyr Sapsai</name>
<email>vsapsai@apple.com</email>
</author>
<published>2022-03-05T01:33:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=4604db9493ffb22e1f411d907f163bf021193d84'/>
<id>4604db9493ffb22e1f411d907f163bf021193d84</id>
<content type='text'>
Differential Revision: https://reviews.llvm.org/D121176
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Differential Revision: https://reviews.llvm.org/D121176
</pre>
</div>
</content>
</entry>
<entry>
<title>[Testing] TestAST, a helper for writing straight-line AST tests</title>
<updated>2022-04-21T19:46:45+00:00</updated>
<author>
<name>Sam McCall</name>
<email>sam.mccall@gmail.com</email>
</author>
<published>2022-04-12T14:27:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a7691dee2d3c0ea3f9f4d14c7e52f1359f23671c'/>
<id>a7691dee2d3c0ea3f9f4d14c7e52f1359f23671c</id>
<content type='text'>
Tests that need ASTs have to deal with the awkward control flow of
FrontendAction in some way. There are a few idioms used:
 - don't bother with unit tests, use clang -dump-ast
 - create an ASTConsumer by hand, which is bulky
 - use ASTMatchFinder - works pretty well if matchers are actually
   needed, very strange if they are not
 - use ASTUnit - this yields nice straight-line code, but ASTUnit is a
   terrifically complicated library not designed for this purpose

TestAST provides a very simple way to write straight-line tests: specify
the code/flags and it provides an AST that is kept alive until the
object is destroyed.
It's loosely modeled after TestTU in clangd, which we've successfully
used for a variety of tests.

I've updated a couple of clang tests to use this helper, IMO they're clearer.

Differential Revision: https://reviews.llvm.org/D123668
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tests that need ASTs have to deal with the awkward control flow of
FrontendAction in some way. There are a few idioms used:
 - don't bother with unit tests, use clang -dump-ast
 - create an ASTConsumer by hand, which is bulky
 - use ASTMatchFinder - works pretty well if matchers are actually
   needed, very strange if they are not
 - use ASTUnit - this yields nice straight-line code, but ASTUnit is a
   terrifically complicated library not designed for this purpose

TestAST provides a very simple way to write straight-line tests: specify
the code/flags and it provides an AST that is kept alive until the
object is destroyed.
It's loosely modeled after TestTU in clangd, which we've successfully
used for a variety of tests.

I've updated a couple of clang tests to use this helper, IMO they're clearer.

Differential Revision: https://reviews.llvm.org/D123668
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix MSVC "not all control paths return a value" warning. NFC.</title>
<updated>2020-06-05T09:45:59+00:00</updated>
<author>
<name>Simon Pilgrim</name>
<email>llvm-dev@redking.me.uk</email>
</author>
<published>2020-06-05T09:41:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a30b5c5a51f95dc81fdfbeea42cc01b451cd5a08'/>
<id>a30b5c5a51f95dc81fdfbeea42cc01b451cd5a08</id>
<content type='text'>
Add llvm_unreachable after switch statement for TestLanguage enum
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add llvm_unreachable after switch statement for TestLanguage enum
</pre>
</div>
</content>
</entry>
<entry>
<title>Use libClangTesting in the unittest for AST matchers</title>
<updated>2020-06-04T15:40:39+00:00</updated>
<author>
<name>Dmitri Gribenko</name>
<email>gribozavr@gmail.com</email>
</author>
<published>2020-06-04T15:40:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b5fc1deb5ba1f3cd432ecb8b86c2536470463163'/>
<id>b5fc1deb5ba1f3cd432ecb8b86c2536470463163</id>
<content type='text'>
Summary:
The unittest for AST matchers has its own way to specify language
standards. I unified it with the shared infrastructure from
libClangTesting.

Reviewers: jdoerfert, hlopko

Reviewed By: hlopko

Subscribers: mgorny, sstefan1, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81150
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
The unittest for AST matchers has its own way to specify language
standards. I unified it with the shared infrastructure from
libClangTesting.

Reviewers: jdoerfert, hlopko

Reviewed By: hlopko

Subscribers: mgorny, sstefan1, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81150
</pre>
</div>
</content>
</entry>
</feed>
