Changeset View
Changeset View
Standalone View
Standalone View
lldb/unittests/SymbolFile/DWARF/DWARFASTParserClangTests.cpp
//===-- DWARFASTParserClangTests.cpp --------------------------------------===// | //===-- DWARFASTParserClangTests.cpp --------------------------------------===// | ||||
// | // | ||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||
// See https://llvm.org/LICENSE.txt for license information. | // See https://llvm.org/LICENSE.txt for license information. | ||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
#include "Plugins/SymbolFile/DWARF/DWARFASTParserClang.h" | #include "Plugins/SymbolFile/DWARF/DWARFASTParserClang.h" | ||||
Lint: Pre-merge checks: clang-tidy: error: 'Plugins/SymbolFile/DWARF/DWARFASTParserClang.h' file not found [clang… | |||||
#include "Plugins/SymbolFile/DWARF/DWARFCompileUnit.h" | #include "Plugins/SymbolFile/DWARF/DWARFCompileUnit.h" | ||||
#include "Plugins/SymbolFile/DWARF/DWARFDIE.h" | #include "Plugins/SymbolFile/DWARF/DWARFDIE.h" | ||||
#include "TestingSupport/Symbol/YAMLModuleTester.h" | #include "TestingSupport/Symbol/YAMLModuleTester.h" | ||||
#include "gmock/gmock.h" | #include "gmock/gmock.h" | ||||
#include "gtest/gtest.h" | #include "gtest/gtest.h" | ||||
using namespace lldb; | using namespace lldb; | ||||
using namespace lldb_private; | using namespace lldb_private; | ||||
Show All 18 Lines | |||||
// If your implementation needs to dereference the dummy pointers we are | // If your implementation needs to dereference the dummy pointers we are | ||||
// defining here, causing this test to fail, feel free to delete it. | // defining here, causing this test to fail, feel free to delete it. | ||||
TEST_F(DWARFASTParserClangTests, | TEST_F(DWARFASTParserClangTests, | ||||
EnsureAllDIEsInDeclContextHaveBeenParsedParsesOnlyMatchingEntries) { | EnsureAllDIEsInDeclContextHaveBeenParsedParsesOnlyMatchingEntries) { | ||||
/// Auxiliary debug info. | /// Auxiliary debug info. | ||||
const char *yamldata = | const char *yamldata = | ||||
"debug_abbrev:\n" | "debug_abbrev:\n" | ||||
" - Table:\n" | |||||
" - Code: 0x00000001\n" | " - Code: 0x00000001\n" | ||||
" Tag: DW_TAG_compile_unit\n" | " Tag: DW_TAG_compile_unit\n" | ||||
" Children: DW_CHILDREN_yes\n" | " Children: DW_CHILDREN_yes\n" | ||||
" Attributes:\n" | " Attributes:\n" | ||||
" - Attribute: DW_AT_language\n" | " - Attribute: DW_AT_language\n" | ||||
" Form: DW_FORM_data2\n" | " Form: DW_FORM_data2\n" | ||||
" - Code: 0x00000002\n" | " - Code: 0x00000002\n" | ||||
" Tag: DW_TAG_base_type\n" | " Tag: DW_TAG_base_type\n" | ||||
" Children: DW_CHILDREN_no\n" | " Children: DW_CHILDREN_no\n" | ||||
" Attributes:\n" | " Attributes:\n" | ||||
" - Attribute: DW_AT_encoding\n" | " - Attribute: DW_AT_encoding\n" | ||||
" Form: DW_FORM_data1\n" | " Form: DW_FORM_data1\n" | ||||
" - Attribute: DW_AT_byte_size\n" | " - Attribute: DW_AT_byte_size\n" | ||||
" Form: DW_FORM_data1\n" | " Form: DW_FORM_data1\n" | ||||
"debug_info:\n" | "debug_info:\n" | ||||
" - Version: 4\n" | " - Version: 4\n" | ||||
" AbbrOffset: 0\n" | " AbbrOffset: 0\n" | ||||
" AddrSize: 8\n" | " AddrSize: 8\n" | ||||
" Entries:\n" | " Entries:\n" | ||||
" - AbbrCode: 0x00000001\n" | " - AbbrCode: 0x00000001\n" | ||||
" Values:\n" | " Values:\n" | ||||
" - Value: 0x000000000000000C\n" | " - Value: 0x000000000000000C\n" | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |
clang-tidy: error: 'Plugins/SymbolFile/DWARF/DWARFASTParserClang.h' file not found [clang-diagnostic-error]
not useful