summaryrefslogtreecommitdiffstats
path: root/Source/cmConfigureLog.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-30 15:37:33 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-01 14:32:42 (GMT)
commit0a48d8fe5ccf8a44bcada7b528f4cf4dd591b18e (patch)
tree70ea637df099d555b01e8e73c9935563d0ea5c22 /Source/cmConfigureLog.h
parente86bebfd146c07d3a5eb34f9f35e133b6c3b805c (diff)
downloadCMake-0a48d8fe5ccf8a44bcada7b528f4cf4dd591b18e.zip
CMake-0a48d8fe5ccf8a44bcada7b528f4cf4dd591b18e.tar.gz
CMake-0a48d8fe5ccf8a44bcada7b528f4cf4dd591b18e.tar.bz2
ConfigureLog: De-duplicate event backtrace and check key generation
All event kinds have these fields, so centralize their implementation.
Diffstat (limited to 'Source/cmConfigureLog.h')
-rw-r--r--Source/cmConfigureLog.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmConfigureLog.h b/Source/cmConfigureLog.h
index d672445..eb25702 100644
--- a/Source/cmConfigureLog.h
+++ b/Source/cmConfigureLog.h
@@ -28,12 +28,9 @@ public:
list is enabled. */
bool IsAnyLogVersionEnabled(std::vector<unsigned long> const& v) const;
- void WriteBacktrace(cmMakefile const& mf);
- void WriteChecks(cmMakefile const& mf);
-
void EnsureInit();
- void BeginEvent(std::string const& kind);
+ void BeginEvent(std::string const& kind, cmMakefile const& mf);
void EndEvent();
void BeginObject(cm::string_view key);
@@ -63,6 +60,9 @@ private:
std::unique_ptr<Json::StreamWriter> Encoder;
+ void WriteBacktrace(cmMakefile const& mf);
+ void WriteChecks(cmMakefile const& mf);
+
cmsys::ofstream& BeginLine();
void EndLine();
void WriteEscape(unsigned char c);