Skip to content

Commit 96e7c9a

Browse files
committed
chore: rename some report functions
1 parent 8a232b1 commit 96e7c9a

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

include/mrdox/Support/Error.hpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ setMinimumLevel(
777777
*/
778778
MRDOX_DECL
779779
void
780-
print_impl(
780+
print(
781781
Level level,
782782
std::string_view text,
783783
source_location const* loc = nullptr);
@@ -787,7 +787,7 @@ print_impl(
787787
@param level 0 to 4 The severity of the
788788
report. 0 is debug and 4 is fatal.
789789
790-
@param format The format string.
790+
@param fs The format string.
791791
792792
@param args... Optional additional arguments
793793
used to format a message to print. A trailing
@@ -796,18 +796,18 @@ print_impl(
796796
*/
797797
template<class... Args>
798798
void
799-
print(
799+
format(
800800
Level level,
801-
Located<std::string_view> format,
801+
Located<std::string_view> fs,
802802
Args&&... args)
803803
{
804-
return print_impl(
804+
return print(
805805
level,
806806
fmt::vformat(
807-
format.value,
807+
fs.value,
808808
fmt::make_format_args(
809809
std::forward<Args>(args)...)),
810-
&format.where);
810+
&fs.where);
811811
}
812812

813813
/** Report a message to the console.
@@ -818,7 +818,7 @@ debug(
818818
Located<std::string_view> format,
819819
Args&&... args)
820820
{
821-
return print_impl(
821+
return print(
822822
Level::debug,
823823
fmt::vformat(
824824
format.value,
@@ -835,7 +835,7 @@ info(
835835
Located<std::string_view> format,
836836
Args&&... args)
837837
{
838-
return print_impl(
838+
return print(
839839
Level::info,
840840
fmt::vformat(
841841
format.value,
@@ -852,7 +852,7 @@ warn(
852852
Located<std::string_view> format,
853853
Args&&... args)
854854
{
855-
return print_impl(
855+
return print(
856856
Level::warn,
857857
fmt::vformat(
858858
format.value,
@@ -869,7 +869,7 @@ error(
869869
Located<std::string_view> format,
870870
Args&&... args)
871871
{
872-
return print_impl(
872+
return print(
873873
Level::error,
874874
fmt::vformat(
875875
format.value,
@@ -886,7 +886,7 @@ fatal(
886886
Located<std::string_view> format,
887887
Args&&... args)
888888
{
889-
return print_impl(
889+
return print(
890890
Level::fatal,
891891
fmt::vformat(
892892
format.value,

src/lib/Lib/CorpusImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ build(
134134
auto bitcodes = collectBitcodes(ex);
135135

136136
// First reducing phase (reduce all decls into one info per decl).
137-
report::print(ex.getReportLevel(),
137+
report::format(ex.getReportLevel(),
138138
"Reducing {} declarations", bitcodes.size());
139139
std::atomic<bool> GotFailure;
140140
GotFailure = false;
@@ -176,7 +176,7 @@ build(
176176
if(! errors.empty())
177177
return Error(errors);
178178

179-
report::print(ex.getReportLevel(),
179+
report::format(ex.getReportLevel(),
180180
"Symbols collected: {}", corpus->InfoMap.size());
181181

182182
if(GotFailure)

src/lib/Lib/Diagnostics.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Diagnostics
6666
{
6767
os << "No errors or warnings.\n";
6868
}
69-
report::print_impl(level, s);
69+
report::print(level, s);
7070
}
7171

7272
void

src/lib/Lib/ToolExecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ execute(
127127
auto const processFile =
128128
[&](std::string Path)
129129
{
130-
report::print(reportLevel_,
130+
report::format(reportLevel_,
131131
"[{}/{}] \"{}\"", Count(), TotalNumStr, Path);
132132

133133
// Each thread gets an independent copy of a VFS to allow different

src/lib/Support/Error.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void setMinimumLevel(Level level) noexcept
161161
}
162162

163163
void
164-
print_impl(
164+
print(
165165
Level level,
166166
std::string_view text,
167167
source_location const* loc)

0 commit comments

Comments
 (0)