Whole-tree reformat

This follows discussions from #3413.
Followup commits add clang-format file, script and blame ignore lists.
This commit is contained in:
Paulo Matos committed 2024-04-12 16:26:02 +02:00
1 parent 028c220041
commit 2b4ec88dae
447 files changed
+78590 -73070

No files matched your search

+25 -26
View File
@@ -4,51 +4,50 @@
#include <string>
struct OutputFilenames {
std::string host;
std::string guest;
std::string host;
std::string guest;
};
class AnalyzeDataLayoutActionFactory : public clang::tooling::FrontendActionFactory {
std::unique_ptr<struct ABI> abi;
std::unique_ptr<struct ABI> abi;
public:
AnalyzeDataLayoutActionFactory();
~AnalyzeDataLayoutActionFactory();
AnalyzeDataLayoutActionFactory();
~AnalyzeDataLayoutActionFactory();
std::unique_ptr<clang::FrontendAction> create() override;
std::unique_ptr<clang::FrontendAction> create() override;
const ABI& GetDataLayout() {
return *abi;
}
const ABI& GetDataLayout() {
return *abi;
}
std::unique_ptr<ABI> TakeDataLayout() {
return std::move(abi);
}
std::unique_ptr<ABI> TakeDataLayout() {
return std::move(abi);
}
};
class DataLayoutCompareActionFactory : public clang::tooling::FrontendActionFactory {
const ABI& abi;
const ABI& abi;
public:
DataLayoutCompareActionFactory(const ABI&);
~DataLayoutCompareActionFactory();
DataLayoutCompareActionFactory(const ABI&);
~DataLayoutCompareActionFactory();
std::unique_ptr<clang::FrontendAction> create() override;
std::unique_ptr<clang::FrontendAction> create() override;
};
class GenerateThunkLibsActionFactory : public clang::tooling::ToolAction {
public:
GenerateThunkLibsActionFactory(std::string_view libname_, OutputFilenames output_filenames_, const ABI& abi_)
: libname(std::move(libname_)), output_filenames(std::move(output_filenames_)), abi(abi_) {
}
GenerateThunkLibsActionFactory(std::string_view libname_, OutputFilenames output_filenames_, const ABI& abi_)
: libname(std::move(libname_))
, output_filenames(std::move(output_filenames_))
, abi(abi_) {}
bool runInvocation(
std::shared_ptr<clang::CompilerInvocation> Invocation, clang::FileManager *Files,
std::shared_ptr<clang::PCHContainerOperations> PCHContainerOps,
clang::DiagnosticConsumer *DiagConsumer) override;
bool runInvocation(std::shared_ptr<clang::CompilerInvocation> Invocation, clang::FileManager* Files,
std::shared_ptr<clang::PCHContainerOperations> PCHContainerOps, clang::DiagnosticConsumer* DiagConsumer) override;
private:
std::string libname;
OutputFilenames output_filenames;
const ABI& abi;
std::string libname;
OutputFilenames output_filenames;
const ABI& abi;
};