[all-commits] [llvm/llvm-project] 35cca4: Misleading bidirectional detection

serge-sans-paille via All-commits all-commits at lists.llvm.org
Wed Jan 12 02:39:08 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35cca45b09b87cc31cda35a66fc93bf4d630f8d2
      https://github.com/llvm/llvm-project/commit/35cca45b09b87cc31cda35a66fc93bf4d630f8d2
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2022-01-12 (Wed, 12 Jan 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/misc/CMakeLists.txt
    M clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp
    A clang-tools-extra/clang-tidy/misc/MisleadingBidirectional.cpp
    A clang-tools-extra/clang-tidy/misc/MisleadingBidirectional.h
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    A clang-tools-extra/docs/clang-tidy/checks/misc-misleading-bidirectional.rst
    A clang-tools-extra/test/clang-tidy/checkers/misc-misleading-bidirectional.cpp

  Log Message:
  -----------
  Misleading bidirectional detection

This patch implements detection of incomplete bidirectional sequence withing
comments and string literals within clang-tidy.

It detects the bidi part of https://www.trojansource.codes/trojan-source.pdf

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




More information about the All-commits mailing list