From 4606f838b2b60ce7d3995adf194eee470bf2395b Mon Sep 17 00:00:00 2001 From: Andrzej Warzynski Date: Thu, 27 Jan 2022 16:44:44 +0000 Subject: [flang][driver][nfc] Fix capitalisation As pointed out in https://reviews.llvm.org/D93401, some methods in the Flang driver are named inconsistently. The driver strives to follow Flang's C++ style [1] and this patch updates these methods accordingly. [1] https://github.com/llvm/llvm-project/blob/main/flang/docs/C%2B%2Bstyle.md Differential Revision: https://reviews.llvm.org/D118381 --- flang/lib/Frontend/CompilerInvocation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'flang/lib/Frontend/CompilerInvocation.cpp') diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index 4525130..2d8c9e3 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -565,7 +565,7 @@ bool CompilerInvocation::CreateFromArgs(CompilerInvocation &res, return success; } -void CompilerInvocation::collectMacroDefinitions() { +void CompilerInvocation::CollectMacroDefinitions() { auto &ppOpts = this->preprocessorOpts(); for (unsigned i = 0, n = ppOpts.macros.size(); i != n; ++i) { @@ -607,7 +607,7 @@ void CompilerInvocation::SetDefaultFortranOpts() { // TODO: When expanding this method, consider creating a dedicated API for // this. Also at some point we will need to differentiate between different // targets and add dedicated predefines for each. -void CompilerInvocation::setDefaultPredefinitions() { +void CompilerInvocation::SetDefaultPredefinitions() { auto &fortranOptions = fortranOpts(); const auto &frontendOptions = frontendOpts(); @@ -631,7 +631,7 @@ void CompilerInvocation::setDefaultPredefinitions() { } } -void CompilerInvocation::setFortranOpts() { +void CompilerInvocation::SetFortranOpts() { auto &fortranOptions = fortranOpts(); const auto &frontendOptions = frontendOpts(); const auto &preprocessorOptions = preprocessorOpts(); @@ -677,7 +677,7 @@ void CompilerInvocation::setFortranOpts() { } } -void CompilerInvocation::setSemanticsOpts( +void CompilerInvocation::SetSemanticsOpts( Fortran::parser::AllCookedSources &allCookedSources) { const auto &fortranOptions = fortranOpts(); -- cgit v1.1