Fixing Clang tidy errors (#195)
* Fixing Clang tidy errors * format-fix * Update code_object.hpp * Clang Tidy Fixes on the whole Source folder * Update source/CMakeLists.txt Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> * Addressing reviews * Correcting the logic for parsing att counters * Format Fix * Update source/lib/rocprofiler-sdk-att/tests/dummy_decoder.cpp Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> * Update source/lib/rocprofiler-sdk-att/tests/standalone_tool_main.cpp Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> * Update source/lib/rocprofiler-sdk-tool/config.cpp Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> * Formatting * Deactivate clang-tidy in source/lib/rocprofiler-sdk-att/tests --------- Co-authored-by: Ammar ELWazir <aelwazir@amd.com> Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
Этот коммит содержится в:
22 files changed
+70
-50
No files matched your search
@@ -34,7 +34,8 @@ namespace att_wrapper
|
||||
{
|
||||
WaveFile::WaveFile(WaveConfig& config, const att_wave_data_t& wave)
|
||||
{
|
||||
if(wave.contexts) ROCP_WARNING << "Wave had " << wave.contexts << " context save-restores";
|
||||
ROCP_WARNING_IF(wave.contexts != 0u)
|
||||
<< "Wave had " << wave.contexts << " context save-restores";
|
||||
|
||||
if(!GlobalDefs::get().has_format("json")) return;
|
||||
if(wave.instructions_size == 0 && wave.timeline_size < 3) return;
|
||||
@@ -89,8 +90,8 @@ WaveFile::WaveFile(WaveConfig& config, const att_wave_data_t& wave)
|
||||
const WaitcntList& wait_list =
|
||||
WaitcntList::Get(config.filemgr->gfxip, wave, config.code->isa_map);
|
||||
|
||||
for(auto& line : wait_list.mem_unroll)
|
||||
if(line.dependencies.size())
|
||||
for(const auto& line : wait_list.mem_unroll)
|
||||
if(!line.dependencies.empty())
|
||||
{
|
||||
nlohmann::json json_line;
|
||||
for(int dep : line.dependencies)
|
||||
|
||||
Reference in new issue
Block a user