Skip to content

Commit 4e2ceec

Browse files
author
Tarun Prabhu
committed
Rename the functions to use camel case.
1 parent 08344cd commit 4e2ceec

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7686,8 +7686,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
76867686
// By default, -gno-record-gcc-switches is set on and no recording.
76877687
auto GRecordSwitches = false;
76887688
auto FRecordSwitches = false;
7689-
if (ShouldRecordCommandLine(TC, Args, FRecordSwitches, GRecordSwitches)) {
7690-
auto FlagsArgString = RenderEscapedCommandLine(TC, Args);
7689+
if (shouldRecordCommandLine(TC, Args, FRecordSwitches, GRecordSwitches)) {
7690+
auto FlagsArgString = renderEscapedCommandLine(TC, Args);
76917691
if (TC.UseDwarfDebugFlags() || GRecordSwitches) {
76927692
CmdArgs.push_back("-dwarf-debug-flags");
76937693
CmdArgs.push_back(FlagsArgString);
@@ -8687,10 +8687,10 @@ void ClangAs::ConstructJob(Compilation &C, const JobAction &JA,
86878687

86888688
SmallString<256> Flags;
86898689
const char *Exec = getToolChain().getDriver().getClangProgramPath();
8690-
EscapeSpacesAndBackslashes(Exec, Flags);
8690+
escapeSpacesAndBackslashes(Exec, Flags);
86918691
for (const char *OriginalArg : OriginalArgs) {
86928692
SmallString<128> EscapedArg;
8693-
EscapeSpacesAndBackslashes(OriginalArg, EscapedArg);
8693+
escapeSpacesAndBackslashes(OriginalArg, EscapedArg);
86948694
Flags += " ";
86958695
Flags += EscapedArg;
86968696
}

clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2961,7 +2961,7 @@ void tools::addMCModel(const Driver &D, const llvm::opt::ArgList &Args,
29612961
}
29622962
}
29632963

2964-
void tools::EscapeSpacesAndBackslashes(const char *Arg,
2964+
void tools::escapeSpacesAndBackslashes(const char *Arg,
29652965
llvm::SmallVectorImpl<char> &Res) {
29662966
for (; *Arg; ++Arg) {
29672967
switch (*Arg) {
@@ -2976,7 +2976,7 @@ void tools::EscapeSpacesAndBackslashes(const char *Arg,
29762976
}
29772977
}
29782978

2979-
const char *tools::RenderEscapedCommandLine(const ToolChain &TC,
2979+
const char *tools::renderEscapedCommandLine(const ToolChain &TC,
29802980
const llvm::opt::ArgList &Args) {
29812981
const Driver &D = TC.getDriver();
29822982
const char *Exec = D.getClangProgramPath();
@@ -2986,18 +2986,18 @@ const char *tools::RenderEscapedCommandLine(const ToolChain &TC,
29862986
Arg->render(Args, OriginalArgs);
29872987

29882988
llvm::SmallString<256> Flags;
2989-
EscapeSpacesAndBackslashes(Exec, Flags);
2989+
escapeSpacesAndBackslashes(Exec, Flags);
29902990
for (const char *OriginalArg : OriginalArgs) {
29912991
llvm::SmallString<128> EscapedArg;
2992-
EscapeSpacesAndBackslashes(OriginalArg, EscapedArg);
2992+
escapeSpacesAndBackslashes(OriginalArg, EscapedArg);
29932993
Flags += " ";
29942994
Flags += EscapedArg;
29952995
}
29962996

29972997
return Args.MakeArgString(Flags);
29982998
}
29992999

3000-
bool tools::ShouldRecordCommandLine(const ToolChain &TC,
3000+
bool tools::shouldRecordCommandLine(const ToolChain &TC,
30013001
const llvm::opt::ArgList &Args,
30023002
bool &FRecordCommandLine,
30033003
bool &GRecordCommandLine) {

clang/lib/Driver/ToolChains/CommonArgs.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,15 @@ void addMCModel(const Driver &D, const llvm::opt::ArgList &Args,
236236
/// Add backslashes to escape spaces and other backslashes.
237237
/// This is used for the space-separated argument list specified with
238238
/// the -dwarf-debug-flags option.
239-
void EscapeSpacesAndBackslashes(const char *Arg,
239+
void escapeSpacesAndBackslashes(const char *Arg,
240240
llvm::SmallVectorImpl<char> &Res);
241241

242242
/// Join the args in the given ArgList, escape spaces and backslashes and
243243
/// return the joined string. This is used when saving the command line as a
244244
/// result of using either the -frecord-command-line or -grecord-command-line
245245
/// options. The lifetime of the returned c-string will match that of the Args
246246
/// argument.
247-
const char *RenderEscapedCommandLine(const ToolChain &TC,
247+
const char *renderEscapedCommandLine(const ToolChain &TC,
248248
const llvm::opt::ArgList &Args);
249249

250250
/// Check if the command line should be recorded in the object file. This is
@@ -253,7 +253,7 @@ const char *RenderEscapedCommandLine(const ToolChain &TC,
253253
/// is currently only supported on ELF platforms. The last two boolean
254254
/// arguments are out parameters and will be set depending on the command
255255
/// line options that were passed.
256-
bool ShouldRecordCommandLine(const ToolChain &TC,
256+
bool shouldRecordCommandLine(const ToolChain &TC,
257257
const llvm::opt::ArgList &Args,
258258
bool &FRecordCommandLine,
259259
bool &GRecordCommandLine);

clang/lib/Driver/ToolChains/Flang.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,8 +887,8 @@ void Flang::ConstructJob(Compilation &C, const JobAction &JA,
887887

888888
bool FRecordCmdLine = false;
889889
bool GRecordCmdLine = false;
890-
if (ShouldRecordCommandLine(TC, Args, FRecordCmdLine, GRecordCmdLine)) {
891-
const char *CmdLine = RenderEscapedCommandLine(TC, Args);
890+
if (shouldRecordCommandLine(TC, Args, FRecordCmdLine, GRecordCmdLine)) {
891+
const char *CmdLine = renderEscapedCommandLine(TC, Args);
892892
if (FRecordCmdLine) {
893893
CmdArgs.push_back("-record-command-line");
894894
CmdArgs.push_back(CmdLine);

0 commit comments

Comments
 (0)