llvm-project/clang
Emilia Dreamer 247613548b [clang-format] Change heuristic for locating lambda template arguments
Previously, the heuristic was simply to look for template argument-
specific keywords, such as typename, class, template and auto
that are preceded by a left angle bracket <.

This changes the heuristic to instead look for a left angle bracket <
preceded by a right square bracket ], since according to the C++
grammar, the template arguments must *directly* follow the introducer.
(This sort of check might just end up being *too* aggressive)

This patch also adds a bunch more token annotator tests for lambdas,
specifically for some of the stranger forms of lambdas now allowed as
of C++20 or soon-to-be-allowed as part of C++23.

Fixes https://github.com/llvm/llvm-project/issues/57093

This does NOT resolve the FIXME regarding explicit template lists, but
perhaps it gets closer

Differential Revision: https://reviews.llvm.org/D132295
2022-09-06 12:24:19 +02:00
..
bindings Fixed a number of typos 2022-08-01 13:13:18 -04:00
cmake [Fuchsia][CMake] Disable LLVM plugin support 2022-08-29 07:26:01 +00:00
docs [clang-format] [doc] Fix example of wrapping class definitions 2022-09-06 12:24:18 +02:00
examples
include [clang-format] [doc] Fix example of wrapping class definitions 2022-09-06 12:24:18 +02:00
lib [clang-format] Change heuristic for locating lambda template arguments 2022-09-06 12:24:19 +02:00
runtime Revert "[cmake] Use `CMAKE_INSTALL_LIBDIR` too" 2022-08-18 22:46:32 -04:00
test [NFC] [Coroutines] Add tests for looking up deallocation 2022-09-06 14:57:01 +08:00
tools [clang-format] Use utf-8 for JSON object load 2022-09-05 15:40:47 +01:00
unittests [clang-format] Change heuristic for locating lambda template arguments 2022-09-06 12:24:19 +02:00
utils Use llvm::count_if (NFC) 2022-09-03 11:17:35 -07:00
www [clang][Sema] check default argument promotions for printf 2022-09-01 10:10:10 +08:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt [Flang] Use find_program() to find clang-tblgen 2022-08-29 11:09:25 +02:00
CODE_OWNERS.TXT
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
README.txt

README.txt

//===----------------------------------------------------------------------===//
// C Language Family Front-end
//===----------------------------------------------------------------------===//

Welcome to Clang.  This is a compiler front-end for the C family of languages
(C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM
compiler infrastructure project.

Unlike many other compiler frontends, Clang is useful for a number of things
beyond just compiling code: we intend for Clang to be host to a number of
different source-level tools.  One example of this is the Clang Static Analyzer.

If you're interested in more (including how to build Clang) it is best to read
the relevant web sites.  Here are some pointers:

Information on Clang:             http://clang.llvm.org/
Building and using Clang:         http://clang.llvm.org/get_started.html
Clang Static Analyzer:            http://clang-analyzer.llvm.org/
Information on the LLVM project:  http://llvm.org/

If you have questions or comments about Clang, a great place to discuss them is
on the Clang forums:
  https://discourse.llvm.org/c/clang/

If you find a bug in Clang, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/