[clang] [Clang][InstrProf] Allow absolute path in fun.list of -fprofile-list= (PR #67519)

via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 26 23:05:30 PDT 2023


github-actions[bot] wrote:


<!--LLVM CODE FORMAT COMMENT: {clang-format}-->

:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 63086d6aa0af9bb7fc73c670d680191ae646f7d8 1968e1f2a131b6ba348501a76983e8df337088f5 -- clang/lib/Basic/ProfileList.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Basic/ProfileList.cpp b/clang/lib/Basic/ProfileList.cpp
index c3cb112cd..ad90651da 100644
--- a/clang/lib/Basic/ProfileList.cpp
+++ b/clang/lib/Basic/ProfileList.cpp
@@ -143,7 +143,8 @@ ProfileList::isFileExcluded(StringRef FileName,
   // Convert the input file path to its canonical (absolute) form
   llvm::SmallString<128> CanonicalFileName(FileName);
   llvm::sys::fs::make_absolute(CanonicalFileName);
-  llvm::dbgs() << "Parsing -fprofile-list option: " << CanonicalFileName << "\n";
+  llvm::dbgs() << "Parsing -fprofile-list option: " << CanonicalFileName
+               << "\n";
 
   // Check for "source:<regex>=<case>" using absolute path
   if (auto V = inSection(Section, "source", CanonicalFileName))

``````````

</details>


https://github.com/llvm/llvm-project/pull/67519


More information about the cfe-commits mailing list