llvm-project/clang/lib
Matheus Izvekov 2d6829bbbe [clang] disable implicit moves when not in CPlusPLus
See PR51842.

This fixes an assert firing in the static analyzer, triggered by implicit moves
in blocks in C mode:

This also simplifies the AST a little bit when compiling non C++ code,
as the xvalue implicit casts are not inserted.

We keep and test that the nrvo flag is still being set on the VarDecls,
as that is still a bit beneficial while not really making anything
more complicated.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>

Reviewed By: NoQ

Differential Revision: https://reviews.llvm.org/D109654
2021-09-14 11:29:47 +02:00
..
APINotes [clang][APINotes] Fix -Wunused-function warning (NFC) 2021-04-01 09:52:43 +08:00
ARCMigrate [clang] Introduce SourceLocation::[U]IntTy typedefs. 2021-07-21 10:45:46 +01:00
AST Improve type printing of const arrays to normalize array-of-const and const-array 2021-09-13 19:17:05 -07:00
ASTMatchers Reapply "Support Attr in DynTypedNode and ASTMatchers." 2021-08-06 22:30:32 +02:00
Analysis [analyzer][NFC] Display the correct function name even in crash dumps 2021-07-12 09:06:46 +02:00
Basic [Clang][AVR] Fix definitions on AVR target 2021-09-12 11:00:59 +02:00
CodeGen Fixup some formatting from a recent commit 2021-09-14 00:41:19 -07:00
CrossTU PR51018: Remove explicit conversions from SmallString to StringRef to future-proof against C++23 2021-07-08 13:37:57 -07:00
DirectoryWatcher Revert "Re-Revert "DirectoryWatcher: add an implementation for Windows"" 2021-06-19 09:19:52 -07:00
Driver [clang] Revert gcc-driver part of 648feabc65 2021-09-13 19:04:29 -04:00
Edit [Matrix] Implement C-style explicit type conversions for matrix types. 2021-04-10 11:48:41 +01:00
Format [clang-format] Restrict the special handling for K&R C to C/C++ 2021-09-10 15:51:35 -07:00
Frontend [OpenMP] Add flag for setting debug in the offloading device 2021-09-10 18:19:19 -04:00
FrontendTool [OptTable] Rename PrintHelp to printHelp 2021-06-24 14:47:03 -07:00
Headers Check supported architectures in sseXYZ/avxXYZ headers 2021-09-14 09:57:54 +02:00
Index [Clang] Add __ibm128 type to represent ppc_fp128 2021-09-06 18:00:58 +08:00
IndexSerialization
Interpreter Revert "Reland "[clang-repl] Re-implement clang-interpreter as a test case."" 2021-09-03 13:18:09 +00:00
Lex [clang] NFC: Fix trivial typo in comments and document 2021-09-04 12:59:42 +05:30
Parse [OpenMP] Encode `omp [...] assume[...]` assumptions with `omp[x]` prefix 2021-09-10 12:08:52 -05:00
Rewrite [analyzer] Highlight arrows for currently selected event 2021-08-02 19:15:01 +03:00
Sema [clang] disable implicit moves when not in CPlusPLus 2021-09-14 11:29:47 +02:00
Serialization [Clang] Add __ibm128 type to represent ppc_fp128 2021-09-06 18:00:58 +08:00
StaticAnalyzer [analyzer] MallocChecker: Add notes from NoOwnershipChangeVisitor only when a function "intents", but doesn't change ownership, enable by default 2021-09-13 15:01:20 +02:00
Testing
Tooling [clang][deps] Sanitize both instances of DiagnosticOptions 2021-09-10 14:47:21 +02:00
CMakeLists.txt [clang-repl] Recommit "Land initial infrastructure for incremental parsing" 2021-05-13 06:30:29 +00:00