summaryrefslogtreecommitdiff
path: root/clang/test/Parser/brackets.cpp
AgeCommit message (Collapse)Author
2025-08-23[clang] Diagnose misplaced array bounds with non-identifier declarators. ↵keinflue
(#155064) ParseMisplacedBracketDeclarator assumed that declarators without associated identifier are ill-formed and already diagnosed previously. This didn't consider declarators using template-ids, constructors, destructors, conversion functions, etc. Fixes #147333.
2023-06-05[clang][Diagnostics] Split source ranges into line ranges before...Timm Bäder
... emitting them. This makes later code easier to understand, since we emit the code snippets line by line anyway. It also fixes the weird underlinig of multi-line source ranges. Differential Revision: https://reviews.llvm.org/D151215
2023-05-31[clang] Show line numbers in diagnostic code snippetsTimm Bäder
Show line numbers to the left of diagnostic code snippets and increase the numbers of lines shown from 1 to 16. Differential Revision: https://reviews.llvm.org/D147875
2023-05-16Revert "[clang] Show line numbers in diagnostic code snippets"Timm Bäder
This reverts commit e2917311f026cc445fa8aeefa0457b0c7a60824a. This caused some problems with lldb testing the diagnostic output: https://lab.llvm.org/buildbot/#/builders/68/builds/52754
2023-05-16[clang] Show line numbers in diagnostic code snippetsTimm Bäder
Show line numbers to the left of diagnostic code snippets and increase the numbers of lines shown from 1 to 16. Differential Revision: https://reviews.llvm.org/D147875
2018-04-06Fix typos in clangAlexander Kornienko
Found via codespell -q 3 -I ../clang-whitelist.txt Where whitelist consists of: archtype cas classs checkk compres definit frome iff inteval ith lod methode nd optin ot pres statics te thru Patch by luzpaz! (This is a subset of D44188 that applies cleanly with a few files that have dubious fixes reverted.) Differential revision: https://reviews.llvm.org/D44188 llvm-svn: 329399
2015-05-01Adjust the wording of the "brackets go after the unqualified-id" error ↵Nick Lewycky
message. It applies in cases that aren't unqualified-ids. llvm-svn: 236344
2014-07-16Revert "clang/test/Driver/crash-report.c: This requires rewriter for ↵Alp Toker
-frewrite-includes. [PR20321]" We've decided to make the core rewriter class and PP rewriters mandatory. They're only a few hundred lines of code in total and not worth supporting as a distinct build configuration, especially since doing so disables key compiler features. This reverts commit r213150. Revert "clang/test: Introduce the feature "rewriter" for --enable-clang-rewriter." This reverts commit r213148. Revert "Move clang/test/Frontend/rewrite-*.c to clang/test/Frontend/Rewriter/" This reverts commit r213146. llvm-svn: 213159
2014-07-16clang/test: Introduce the feature "rewriter" for --enable-clang-rewriter.NAKAMURA Takumi
llvm-svn: 213148
2014-06-24Provide a better diagnostic when braces are put before the identifier.Richard Trieu
When a user types: int [4] foo; assume that the user means: int foo[4]; Update the information for 'foo' to prevent additional errors, and provide a fix-it hint to move the brackets to the correct location. Additionally, suggest parens for types that require it, such as: int [4] *foo; to: int (*foo)[4]; llvm-svn: 211641