[all-commits] [llvm/llvm-project] 020ed6: [clang-tidy] Fix check for Abseil internal namespa...

Eric via All-commits all-commits at lists.llvm.org
Tue Jan 21 12:22:07 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 020ed6713d889a95f8c98d7725c87b458d99f6b3
      https://github.com/llvm/llvm-project/commit/020ed6713d889a95f8c98d7725c87b458d99f6b3
  Author: Eric Fiselier <eric at efcs.ca>
  Date:   2020-01-21 (Tue, 21 Jan 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/abseil/NoInternalDependenciesCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/Inputs/absl/strings/internal-file.h
    M clang-tools-extra/test/clang-tidy/checkers/abseil-no-internal-dependencies.cpp

  Log Message:
  -----------
  [clang-tidy] Fix check for Abseil internal namespace access

This change makes following modifications:
  * If reference originated from macro expansion, we report location inside of
    the macro instead of location where macro is referenced.
  * If for any reason deduced location is not correct we silently ignore it.

Patch by Gennadiy Rozental (rogeeff at google.com)
Reviewed as https://reviews.llvm.org/D72484




More information about the All-commits mailing list