chore: make all header files lowercase.

This commit is contained in:
2025-02-28 22:38:23 +08:00
parent 4e8be06f46
commit fc42c2b6eb
6 changed files with 17 additions and 14 deletions

View File

@@ -74,18 +74,21 @@ private:
class Consumer : public ASTConsumer {
public:
explicit Consumer(ASTContext& Context) {}
explicit Consumer(ASTContext&) {}
void HandleTranslationUnit(ASTContext& Context) override {
Container Symbols;
void HandleTranslationUnit(ASTContext& context) override {
Container symbols;
Visitor(Context, Symbols)
.TraverseDecl(Context.getTranslationUnitDecl());
Visitor(context, symbols)
.TraverseDecl(context.getTranslationUnitDecl());
// Save
auto& SM = Context.getSourceManager();
auto Loc = SM.getLocForStartOfFile(SM.getMainFileID());
Symbols.write_to(SM.getFilename(Loc).str() + ".symbols");
auto& source_manager = context.getSourceManager();
auto source_location =
source_manager.getLocForStartOfFile(source_manager.getMainFileID());
symbols.write_to(
source_manager.getFilename(source_location).str() + ".symbols"
);
}
};

View File

@@ -1,4 +1,4 @@
#include "object_file/COFF.h"
#include "object_file/coff.h"
namespace di::object_file {

View File

@@ -1,4 +1,4 @@
#include "object_file/PDB.h"
#include "object_file/pdb.h"
#include <llvm/DebugInfo/MSF/MSFBuilder.h>
#include <llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h>
@@ -17,7 +17,7 @@ PDB::PDB() : m_builder(m_allocator) {
throw std::runtime_error("Failed to initialize pdb file builder.");
}
for (uint32_t I = 0; I < pdb::kSpecialStreamCount; ++I) {
for (uint32_t idx = 0; idx < pdb::kSpecialStreamCount; ++idx) {
if (!m_builder.getMsfBuilder().addStream(0)) {
throw std::runtime_error("Failed to add initial stream.");
}

View File

@@ -1,6 +1,6 @@
#pragma once
#include "object_file/COFF.h"
#include "object_file/coff.h"
#include "data_format/bound_symbol_list.h"
#include "data_format/raw_type_data.h"

View File

@@ -1,7 +1,7 @@
#include <argparse/argparse.hpp>
#include "object_file/COFF.h"
#include "object_file/PDB.h"
#include "object_file/coff.h"
#include "object_file/pdb.h"
#include "data_format/bound_symbol_list.h"
#include "data_format/raw_type_data.h"