[all-commits] [llvm/llvm-project] 24e522: [clang-apply-replacements] Deduplicate Implementat...
Daniil Dudkin via All-commits
all-commits at lists.llvm.org
Fri Jan 19 04:57:15 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 24e5229230786b650a24d70bf7b10611ceb910fb
https://github.com/llvm/llvm-project/commit/24e5229230786b650a24d70bf7b10611ceb910fb
Author: Daniil Dudkin <unterumarmung at yandex.ru>
Date: 2024-01-19 (Fri, 19 Jan 2024)
Changed paths:
M clang-tools-extra/clang-apply-replacements/include/clang-apply-replacements/Tooling/ApplyReplacements.h
M clang-tools-extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
Log Message:
-----------
[clang-apply-replacements] Deduplicate Implementation of `collectReplacementsFromDirectory` (NFC) (#78630)
* Convert `collectReplacementsFromDirectory` into a function template.
* Employ explicit specialization to maintain implementation in the
source file.
* Utilize the function template in the source file to eliminate code
duplication.
* Update the documentation for the function.
More information about the All-commits
mailing list