GoddamnIDontNeedAUse

Untitled

Sep 20th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. ─── Output/messages ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  2. ─── Source ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  3. 1187 SuggestedCompletions.push_back(S);
  4. 1188 } else {
  5. 1189 // If the flag is in the form of "--autocomplete=foo,bar", we were
  6. 1190 // requested to print out all option values for "-foo" that start with
  7. 1191 // "bar". For example,
  8. 1192 // "--autocomplete=-stdlib=,l" is expanded to "libc++" and "libstdc++".
  9. 1193 StringRef Option, Arg;
  10. 1194 std::tie(Option, Arg) = PassedFlags.split(',');
  11. 1195 SuggestedCompletions = Opts->suggestValueCompletions(Option, Arg);
  12. 1196 }
  13. 1197
  14. 1198 // Sort the autocomplete candidates so that shells print them out in a
  15. 1199 // deterministic order. We could sort in any way, but we chose
  16. 1200 // case-insensitive sorting for consistency with the -help option
  17. 1201 // which prints out options in the case-insensitive alphabetical order.
  18. 1202 std::sort(SuggestedCompletions.begin(), SuggestedCompletions.end(),
  19. 1203 [](StringRef A, StringRef B) { return A.compare_lower(B) < 0; });
  20. ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  21.  
  22. Breakpoint 3, clang::driver::Driver::handleAutocompletions (this=0x7fffffffcfc0, PassedFlags=...) at /opt/clang/llvm/tools/clang/lib/Driver/Driver.cpp:1195
  23. 1195 SuggestedCompletions = Opts->suggestValueCompletions(Option, Arg);
  24. >>> p Arg
  25. $12 = {
  26. static npos = 18446744073709551615,
  27. Data = 0x7fffffffe4fb "",
  28. Length = 0
  29. }
  30. >>> p Option
  31. $13 = {
  32. static npos = 18446744073709551615,
  33. Data = 0x7fffffffe4f6 "-std,",
  34. Length = 4
  35. }
  36. >>> p PassedFlags
  37. $14 = {
  38. static npos = 18446744073709551615,
  39. Data = 0x7fffffffe4f6 "-std,",
  40. Length = 5
  41. }
  42. >>>
Add Comment
Please, Sign In to add comment