File tree Expand file tree Collapse file tree 4 files changed +3
-4
lines changed Expand file tree Collapse file tree 4 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ class SemanticsContext {
348
348
UnorderedSymbolSet isDefined_;
349
349
std::list<ProgramTree> programTrees_;
350
350
351
- // storage for mangled names used in OMP DECLARE REDUCTION.
351
+ // Storage for mangled names used in OMP DECLARE REDUCTION.
352
352
// use std::list to avoid re-allocating the string when adding
353
353
// more content to the container.
354
354
std::list<std::string> userReductionNames_;
Original file line number Diff line number Diff line change @@ -3498,7 +3498,7 @@ void OmpStructureChecker::CheckReductionObjects(
3498
3498
3499
3499
static bool CheckSymbolSupportsType (const Scope &scope,
3500
3500
const parser::CharBlock &name, const DeclTypeSpec &type) {
3501
- if (const auto & symbol{scope.FindSymbol (name)}) {
3501
+ if (const auto * symbol{scope.FindSymbol (name)}) {
3502
3502
if (const auto *reductionDetails{
3503
3503
symbol->detailsIf <UserReductionDetails>()}) {
3504
3504
return reductionDetails->SupportsType (type);
Original file line number Diff line number Diff line change 8
8
9
9
#include " mod-file.h"
10
10
#include " resolve-names.h"
11
- #include " flang/Common/indirection.h"
12
11
#include " flang/Common/restorer.h"
13
12
#include " flang/Evaluate/tools.h"
14
13
#include " flang/Parser/message.h"
Original file line number Diff line number Diff line change @@ -1842,7 +1842,7 @@ void OmpVisitor::ProcessReductionSpecifier(
1842
1842
reductionDetails = symbol->detailsIf <UserReductionDetails>();
1843
1843
1844
1844
if (!reductionDetails) {
1845
- context ().Say (name-> source ,
1845
+ context ().Say (
1846
1846
" Duplicate definition of '%s' in DECLARE REDUCTION" _err_en_US,
1847
1847
name->source );
1848
1848
return ;
You can’t perform that action at this time.
0 commit comments