Skip to content

Commit

Permalink
[clang][dataflow] Use namespace qualifiers when defining functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinboehme committed Jun 27, 2023
1 parent dc6f5c9 commit 9a4097e
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions clang/lib/Analysis/FlowSensitive/RecordOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@

#define DEBUG_TYPE "dataflow"

namespace clang {
namespace dataflow {

void copyRecord(AggregateStorageLocation &Src, AggregateStorageLocation &Dst,
Environment &Env) {
void clang::dataflow::copyRecord(AggregateStorageLocation &Src,
AggregateStorageLocation &Dst,
Environment &Env) {
LLVM_DEBUG({
if (Dst.getType().getCanonicalType().getUnqualifiedType() !=
Src.getType().getCanonicalType().getUnqualifiedType()) {
Expand Down Expand Up @@ -62,9 +60,10 @@ void copyRecord(AggregateStorageLocation &Src, AggregateStorageLocation &Dst,
}
}

bool recordsEqual(const AggregateStorageLocation &Loc1, const Environment &Env1,
const AggregateStorageLocation &Loc2,
const Environment &Env2) {
bool clang::dataflow::recordsEqual(const AggregateStorageLocation &Loc1,
const Environment &Env1,
const AggregateStorageLocation &Loc2,
const Environment &Env2) {
LLVM_DEBUG({
if (Loc2.getType().getCanonicalType().getUnqualifiedType() !=
Loc1.getType().getCanonicalType().getUnqualifiedType()) {
Expand Down Expand Up @@ -124,6 +123,3 @@ bool recordsEqual(const AggregateStorageLocation &Loc1, const Environment &Env1,

return true;
}

} // namespace dataflow
} // namespace clang

0 comments on commit 9a4097e

Please sign in to comment.