HomePhabricator

[libTooling] Add function to Transformer to create a no-op edit.

Authored by ymandel on Oct 22 2020, 7:03 AM.

Description

[libTooling] Add function to Transformer to create a no-op edit.

This functionality is commonly needed in clang tidy checks (based on
transformer) that only print warnings, without suggesting any edits. The no-op
edit allows the user to associate a diagnostic message with a source location.

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