aaron.ballman closed this revision.
aaron.ballman marked 4 inline comments as done.
aaron.ballman added a comment.
Committed in r333653.
Comment at: test/Frontend/compiler-options-dump.cpp:3
+// RUN: %clang_cc1 -compiler-options-dump -std=c++17 %s -o - | FileCheck %s
--check-p
rsmith added a comment.
+@dlj, who had some more ambitious plans for expressing our configuration as
JSON.
The part you have here seems fine. I share Eli's concerns about exposing our
`LangOptions` with any kind of implied stability guarantee.
https://reviews.llvm.org/D45835
__
aaron.ballman marked 3 inline comments as done.
aaron.ballman added inline comments.
Comment at: test/Frontend/compiler-options-dump.cpp:3
+// RUN: %clang_cc1 -compiler-options-dump -std=c++17 %s -o - | FileCheck %s
--check-prefix=CXX17
+// RUN: %clang_cc1 -compiler-options-dump
hfinkel added inline comments.
Comment at: test/Frontend/compiler-options-dump.cpp:3
+// RUN: %clang_cc1 -compiler-options-dump -std=c++17 %s -o - | FileCheck %s
--check-prefix=CXX17
+// RUN: %clang_cc1 -compiler-options-dump -std=c99 -ffast-math -x c %s -o - |
FileCheck %s --c
aaron.ballman added a comment.
Ping.
https://reviews.llvm.org/D45835
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
aaron.ballman added a comment.
Ping.
https://reviews.llvm.org/D45835
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
lebedev.ri added inline comments.
Comment at: lib/Frontend/FrontendActions.cpp:779
+ {
+std::string Str;
+#define FEATURE(Name, Predicate)
\
aaron.ballman wrote:
> lebedev.ri wrote:
> > This is likely to do an a
aaron.ballman added inline comments.
Comment at: lib/Frontend/FrontendActions.cpp:779
+ {
+std::string Str;
+#define FEATURE(Name, Predicate)
\
lebedev.ri wrote:
> This is likely to do an allocation for each fea
aaron.ballman updated this revision to Diff 146529.
aaron.ballman marked 3 inline comments as done.
aaron.ballman added a comment.
Updated based on review feedback.
https://reviews.llvm.org/D45835
Files:
include/clang/Basic/Features.def
include/clang/Driver/CC1Options.td
include/clang/Fro
lebedev.ri added inline comments.
Comment at: lib/Frontend/FrontendActions.cpp:779
+ {
+std::string Str;
+#define FEATURE(Name, Predicate)
\
This is likely to do an allocation for each feature.
Maybe consider `l
aaron.ballman added a comment.
Ping.
https://reviews.llvm.org/D45835
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
aaron.ballman updated this revision to Diff 145077.
aaron.ballman added a comment.
Updated to remove the contentious parts, though I still hope to add those back
in.
https://reviews.llvm.org/D45835
Files:
include/clang/Basic/Features.def
include/clang/Driver/CC1Options.td
include/clang/F
aaron.ballman added a comment.
In https://reviews.llvm.org/D45835#1073883, @efriedma wrote:
> > If any of those options we care about wind up being changed, there's a good
> > chance we may need to change something on our end anyway, so breaking us is
> > actually useful.
>
> I'm not sure I fol
efriedma added a comment.
> If any of those options we care about wind up being changed, there's a good
> chance we may need to change something on our end anyway, so breaking us is
> actually useful.
I'm not sure I follow. The language options have specific consequences you
could check some
aaron.ballman added a comment.
In https://reviews.llvm.org/D45835#1072557, @efriedma wrote:
> The list of features/extensions seems okay; it's information which is already
> available through a stable interface (specifically, clang -E). JSON also
> seems fine as a representation.
>
> Including
efriedma added a comment.
The list of features/extensions seems okay; it's information which is already
available through a stable interface (specifically, clang -E). JSON also seems
fine as a representation.
Including the language/codegen/etc. options as-is doesn't make sense; we can,
and of
aaron.ballman created this revision.
aaron.ballman added a reviewer: rsmith.
Herald added a subscriber: cryptoad.
There are situations where an out-of-tree user may need to know information
about what compiler options are used and what features/extensions may be
available for a given invocation
17 matches
Mail list logo