Skip to content

Commit a893959

Browse files
committed
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running: run-clang-tidy.py \ -checks='-*,llvm-namespace-comment' \ -header-filter=^/.../mozilla-central/.* \ -fix
1 parent e4231f7 commit a893959

File tree

1,709 files changed

+3141
-2926
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,709 files changed

+3141
-2926
lines changed

accessible/generic/OuterDocAccessible.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Accessible::AsOuterDoc()
5252
{
5353
return IsOuterDoc() ? static_cast<OuterDocAccessible*>(this) : nullptr;
5454
}
55+
5556
} // namespace a11y
5657
} // namespace mozilla
5758

accessible/windows/msaa/AccessibleWrap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ WrapperFor(ProxyAccessible* aProxy)
223223
{
224224
return reinterpret_cast<AccessibleWrap*>(aProxy->GetWrapper());
225225
}
226+
226227
} // namespace a11y
227228
} // namespace mozilla
228229

browser/components/migration/nsIEHistoryEnumerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace {
3737
return PR_ImplodeTime(&prt);
3838
}
3939

40-
} // Anonymous namespace.
40+
} // namespace
4141

4242
////////////////////////////////////////////////////////////////////////////////
4343
//// nsIEHistoryEnumerator

caps/BasePrincipal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class MOZ_STACK_CLASS PopulateFromSuffixIterator final
108108
OriginAttributes* mOriginAttributes;
109109
};
110110

111-
} // anonymous namespace
111+
} // namespace
112112

113113
bool
114114
OriginAttributes::PopulateFromSuffix(const nsACString& aStr)

caps/DomainPolicy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace mozilla {
1515

1616
namespace ipc {
1717
class URIParams;
18-
};
18+
} // namespace ipc
1919

2020
enum DomainSetChangeType{
2121
ACTIVATE_POLICY,

caps/nsScriptSecurityManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class nsSystemPrincipal;
2424

2525
namespace mozilla {
2626
class OriginAttributes;
27-
}
27+
} // namespace mozilla
2828

2929
/////////////////////////////
3030
// nsScriptSecurityManager //

chrome/RegistryMessageUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,6 @@ struct ParamTraits<OverrideMapping>
197197
}
198198
};
199199

200-
}
200+
} // namespace IPC
201201

202202
#endif // RegistryMessageUtils_h

chrome/nsChromeRegistryChrome.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
namespace mozilla {
1616
namespace dom {
1717
class PContentParent;
18-
}
19-
}
18+
} // namespace dom
19+
} // namespace mozilla
2020

2121
class nsIPrefBranch;
2222
struct ChromePackage;

docshell/base/IHistory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace mozilla {
1515

1616
namespace dom {
1717
class Link;
18-
}
18+
} // namespace dom
1919

2020
// 0057c9d3-b98e-4933-bdc5-0275d06705e1
2121
#define IHISTORY_IID \

docshell/base/nsDocShell.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8420,7 +8420,8 @@ class MOZ_STACK_CLASS PresentationEventForgetter
84208420
mRestorePresentationEvent;
84218421
nsRefPtr<nsDocShell::RestorePresentationEvent> mEvent;
84228422
};
8423-
}
8423+
8424+
} // namespace
84248425

84258426
nsresult
84268427
nsDocShell::RestoreFromHistory()
@@ -9448,7 +9449,7 @@ class nsCopyFaviconCallback final : public nsIFaviconDataCallback
94489449
NS_IMPL_ISUPPORTS(nsCopyFaviconCallback, nsIFaviconDataCallback)
94499450
#endif
94509451

9451-
} // anonymous namespace
9452+
} // namespace
94529453

94539454
void
94549455
nsDocShell::CopyFavicon(nsIURI* aOldURI,

0 commit comments

Comments
 (0)