You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -299,7 +300,7 @@ framework to walk the `evaluate::Expr` to gather all of the
299
300
`evaluate::ActualArgument` nodes. The code that I planned to model it on
300
301
was the existing infrastructure that collected all of the `semantics::Symbol` nodes from an
301
302
`evaluate::Expr`. I found this implementation in
302
-
.../lib/evaluate/tools.cc:
303
+
`lib/evaluate/tools.cpp`:
303
304
304
305
```C++
305
306
structCollectSymbolsHelper
@@ -316,7 +317,8 @@ was the existing infrastructure that collected all of the `semantics::Symbol` no
316
317
}
317
318
```
318
319
319
-
Note that the `CollectSymbols()` function returns a `semantics::Symbolset`, which is declared in .../lib/semantics/symbol.h:
320
+
Note that the `CollectSymbols()` function returns a `semantics::Symbolset`,
321
+
which is declared in `include/flang/semantics/symbol.h`:
320
322
321
323
```C++
322
324
using SymbolSet = std::set<SymbolRef>;
@@ -338,10 +340,11 @@ full `semantics::Symbol` objects into the set. Ideally, we would be able to cre
338
340
`std::set<Symbol &>` (a set of C++ references to symbols). But C++ doesn't
339
341
support sets that contain references. This limitation is part of the rationale
340
342
for the f18 implementation of type `common::Reference`, which is defined in
341
-
.../lib/common/reference.h.
343
+
`include/flang/common/reference.h`.
342
344
343
345
`SymbolRef`, the specialization of the template `common::Reference` for
344
-
`semantics::Symbol`, is declared in the file .../lib/semantics/symbol.h:
346
+
`semantics::Symbol`, is declared in the file
347
+
`include/flang/semantics/symbol.h`:
345
348
346
349
```C++
347
350
using SymbolRef = common::Reference<const Symbol>;
@@ -351,7 +354,7 @@ So to implement something that would collect `evaluate::ActualArgument`
351
354
nodes from an `evaluate::Expr`, I first defined the required types
352
355
`ActualArgumentRef` and `ActualArgumentSet`. Since these are being
353
356
used exclusively for DO construct semantic checking (currently), I put their
354
-
definitions into .../lib/semantics/check-do.cc:
357
+
definitions into `lib/semantics/check-do.cpp`:
355
358
356
359
357
360
```C++
@@ -367,7 +370,7 @@ Since `ActualArgument` is in the namespace `evaluate`, I put the
367
370
definition for `ActualArgumentRef` in that namespace, too.
368
371
369
372
I then modeled the code to create an `ActualArgumentSet` after the code to
370
-
collect a `SymbolSet` and put it into check-do.cc:
373
+
collect a `SymbolSet` and put it into `lib/semantics/check-do.cpp`:
371
374
372
375
373
376
```C++
@@ -506,8 +509,8 @@ symbol table node (`semantics::Symbol`) for the variable. My starting point was
506
509
`evaluate::ActualArgument` node.
507
510
508
511
I was unsure of how to do this, so I browsed through existing code to look for
509
-
how it treated `evaluate::ActualArgument` objects. Since most of the code that deals with the `evaluate` namespace is in the .../lib/evaluate directory, I looked there. I ran `grep` on all of the `.cc` files looking for
510
-
uses of `ActualArgument`. One of the first hits I got was in .../lib/evaluate/call.cc in the definition of `ActualArgument::GetType()`:
512
+
how it treated `evaluate::ActualArgument` objects. Since most of the code that deals with the `evaluate` namespace is in the lib/evaluate directory, I looked there. I ran `grep` on all of the `.cpp` files looking for
513
+
uses of `ActualArgument`. One of the first hits I got was in `lib/evaluate/call.cpp` in the definition of `ActualArgument::GetType()`:
0 commit comments