llvm-project/clang/unittests
Martin Probst 146d685cd6 clang-format: [JS] detect C++ keywords.
Summary:
C++ defines a number of keywords that are regular identifiers in
JavaScript, e.g. `concept`:

    const concept = 1; // legit JS

This change expands the existing `IsJavaScriptIdentifier(Tok)` function
to return false for C++ keywords that aren't keywords in JS.

Reviewers: krasimir

Subscribers: jfb, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D77311
2020-04-03 14:23:56 +02:00
..
AST [AST] Print a<b<c>> without extra spaces in C++11 or later. 2020-03-26 09:53:54 +01:00
ASTMatchers Revert "[OpenMP][NFCI] Move OpenMP clause information to `lib/Frontend/OpenMP`" 2020-04-02 02:23:22 -05:00
Analysis [clang] Minor cleanup in CloneDetectionTest 2020-04-01 10:48:50 +02:00
Basic Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
CodeGen Remove CompositeType class. 2020-03-18 13:53:17 -07:00
CrossTU [Tooling] Migrated APIs that take ownership of objects to unique_ptr 2019-08-30 09:29:34 +00:00
DirectoryWatcher [DirectoryWatcher] Fix misuse of FSEvents API and data race 2020-02-11 09:25:38 -08:00
Driver Remove unused Endian.h includes, NFC 2020-03-11 15:45:34 -07:00
Format clang-format: [JS] detect C++ keywords. 2020-04-03 14:23:56 +02:00
Frontend Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00
Index [clang][Index] Visit the default parameter arguements in libindex. 2020-02-17 16:45:04 +01:00
Lex Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Rename Make builtbot happy. 2020-02-25 17:04:38 +01:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema [AST] Fix crashes on decltype(recovery-expr). 2020-03-30 14:56:33 +02:00
Serialization Revert "[modules] Do not cache invalid state for modules that we attempted to load." 2020-03-10 10:59:26 -07:00
StaticAnalyzer [analyzer][NFC] Change LangOptions to CheckerManager in the shouldRegister* functions 2020-03-27 14:34:09 +01:00
Tooling [Syntax] Remove delayed folding from tree building. 2020-03-31 09:47:50 +02:00
libclang Revert "Revert "Reland "[Support] make report_fatal_error `abort` instead of `exit`""" 2020-02-13 10:16:06 -08:00
CMakeLists.txt [clang] [unittest] Import LLVMTestingSupport if necessary 2019-09-12 13:06:12 +00:00