[all-commits] [llvm/llvm-project] 858a95: [clang-query] Add check to prevent setting srcloc ...

Nathan James via All-commits all-commits at lists.llvm.org
Wed Apr 28 03:22:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 858a9583e1fed24aa57e5f2769f4117883264ceb
      https://github.com/llvm/llvm-project/commit/858a9583e1fed24aa57e5f2769f4117883264ceb
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2021-04-28 (Wed, 28 Apr 2021)

  Changed paths:
    M clang-tools-extra/clang-query/Query.h
    M clang-tools-extra/clang-query/QueryParser.cpp
    M clang-tools-extra/unittests/clang-query/QueryParserTest.cpp

  Log Message:
  -----------
  [clang-query] Add check to prevent setting srcloc when no introspection is available.

Checks if introspection support is available set output kind parser.
If it isn't present the auto complete will not suggest `srcloc` and an error query will be reported if a user tries to access it.

Reviewed By: steveire

Differential Revision: https://reviews.llvm.org/D101365




More information about the All-commits mailing list