[PATCH] D35447: [Bash-autocompletion] Add support for -W<warning> and -Wno<warning>
Raphael Isemann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 15 00:34:23 PDT 2017
teemperor requested changes to this revision.
teemperor added a comment.
This revision now requires changes to proceed.
It seems the code doesn't compile in clang because on your platform `std::vector` is implicitly included by some header, on clang+Arch however it isn`t (see the error at the end of https://teemperor.de/ccir/D35447).
================
Comment at: clang/lib/Driver/Driver.cpp:1279
+
+ for (std::string S : DiagnosticIDs::getDiagnosticFlags())
+ if (StringRef(S).startswith(PassedFlags))
----------------
ruiu wrote:
> Let's avoid copy: std::string -> StringRef
>
Could you document why we had to do it this way and can't reuse the normal flags? Maybe even add a `TODO:` because it would be nice project for someone to refactor this into one data structure.
https://reviews.llvm.org/D35447
More information about the cfe-commits
mailing list