aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceLocation.cpp
diff options
context:
space:
mode:
authorMoritz Sichert <sichert@in.tum.de>2020-11-27 12:26:46 +0100
committerMoritz Sichert <sichert@in.tum.de>2021-01-22 13:42:38 +0100
commite16959c9b8553a60ec5e9aa55d101154d5805292 (patch)
treebc821dd887288180bd697c3e5a4dc7c8a12be3fd /clang/lib/Basic/SourceLocation.cpp
parentd972d4c749048531953a16b815e07c67e8455a3b (diff)
downloadllvm-e16959c9b8553a60ec5e9aa55d101154d5805292.zip
llvm-e16959c9b8553a60ec5e9aa55d101154d5805292.tar.gz
llvm-e16959c9b8553a60ec5e9aa55d101154d5805292.tar.bz2
Don't delete default constructor of PathDiagnosticConsumerOptions
This type is used as an aggregate, i.e. it has no member functions. Starting with C++20 types with deleted default constructors are not aggregate types anymore which means that aggregate initialization will not work for this class anymore. This leads to a compile error in clang::AnalyzerOptions::getDiagOpts() for example. Also set the boolean flags to false by default to avoid undefined behavior. Previously this was prevented by deleting the default constructor, now we explicitly initialize them. Differential Revision: https://reviews.llvm.org/D92221
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
0 files changed, 0 insertions, 0 deletions