Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ─── Output/messages ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
- ─── Source ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
- 1187 SuggestedCompletions.push_back(S);
- 1188 } else {
- 1189 // If the flag is in the form of "--autocomplete=foo,bar", we were
- 1190 // requested to print out all option values for "-foo" that start with
- 1191 // "bar". For example,
- 1192 // "--autocomplete=-stdlib=,l" is expanded to "libc++" and "libstdc++".
- 1193 StringRef Option, Arg;
- 1194 std::tie(Option, Arg) = PassedFlags.split(',');
- 1195 SuggestedCompletions = Opts->suggestValueCompletions(Option, Arg);
- 1196 }
- 1197
- 1198 // Sort the autocomplete candidates so that shells print them out in a
- 1199 // deterministic order. We could sort in any way, but we chose
- 1200 // case-insensitive sorting for consistency with the -help option
- 1201 // which prints out options in the case-insensitive alphabetical order.
- 1202 std::sort(SuggestedCompletions.begin(), SuggestedCompletions.end(),
- 1203 [](StringRef A, StringRef B) { return A.compare_lower(B) < 0; });
- ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
- Breakpoint 3, clang::driver::Driver::handleAutocompletions (this=0x7fffffffcfc0, PassedFlags=...) at /opt/clang/llvm/tools/clang/lib/Driver/Driver.cpp:1195
- 1195 SuggestedCompletions = Opts->suggestValueCompletions(Option, Arg);
- >>> p Arg
- $12 = {
- static npos = 18446744073709551615,
- Data = 0x7fffffffe4fb "",
- Length = 0
- }
- >>> p Option
- $13 = {
- static npos = 18446744073709551615,
- Data = 0x7fffffffe4f6 "-std,",
- Length = 4
- }
- >>> p PassedFlags
- $14 = {
- static npos = 18446744073709551615,
- Data = 0x7fffffffe4f6 "-std,",
- Length = 5
- }
- >>>
Add Comment
Please, Sign In to add comment