Skip to content

Commit 8d48644

Browse files
committed
Addressed review comments.
1 parent 7fe537c commit 8d48644

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clang/lib/Frontend/PrintPreprocessedOutput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ void PrintPPOutputPPCallbacks::WriteLineInfo(unsigned LineNo,
274274

275275
if (PP.getLangOpts().isSYCL()) {
276276
StringRef CurFilenameWithNoLeadingDotSlash =
277-
llvm::sys::path::remove_leading_dotbackslash(CurFilename.str());
277+
llvm::sys::path::remove_leading_dotbackslash_only(CurFilename.str());
278278
if ((CurFilenameWithNoLeadingDotSlash ==
279279
PP.getPreprocessorOpts().IncludeFooter) ||
280280
CurFilenameWithNoLeadingDotSlash ==

llvm/include/llvm/Support/Path.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@ bool replace_path_prefix(SmallVectorImpl<char> &Path, StringRef OldPrefix,
201201
/// @result The cleaned-up \a path.
202202
StringRef remove_leading_dotslash(StringRef path, Style style = Style::native);
203203

204-
/// Remove redundant leading ".\" pieces and consecutive separators.
204+
/// Remove redundant leading ".\\" pieces and consecutive separators.
205205
///
206206
/// @param path Input path.
207207
/// @result The cleaned-up \a path.
208-
StringRef remove_leading_dotbackslash(StringRef path);
208+
StringRef remove_leading_dotbackslash_only(StringRef path);
209209

210210
/// In-place remove any './' and optionally '../' components from a path.
211211
///

llvm/lib/Support/Path.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ StringRef remove_leading_dotslash(StringRef Path, Style style) {
711711
return Path;
712712
}
713713

714-
StringRef remove_leading_dotbackslash(StringRef Path) {
714+
StringRef remove_leading_dotbackslash_only(StringRef Path) {
715715
// Remove leading ".\\".
716716
if (Path.size() > 2 && Path[0] == '.' && Path[1] == '\\')
717717
Path = Path.substr(2);

0 commit comments

Comments
 (0)