[PATCH] D37249: [Bash-autocomplete] Refactor autocomplete code into own function

Raphael Isemann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 28 22:59:23 PDT 2017


teemperor added inline comments.


================
Comment at: clang/lib/Driver/Driver.cpp:1160
 
+void Driver::handleAutocompletions(const llvm::opt::Arg *A) const {
+  // Print out all options that start with a given argument. This is used for
----------------
I think a more generic interface would be `void Driver::handleAutocompletions(StringRef PassedFlags) const {` as we don't really require that the user of this function actually has an `Arg` with a value before calling this function.


https://reviews.llvm.org/D37249





More information about the cfe-commits mailing list