Files
serge-sans-paille f61ddf531d Bug 2034832 - Make parser/ headers compatible with current static analysis r=hsivonen
- use = default when relevant
- use = delete on public method instead of unimplemented private
- use range-based loop

This matches the clang-tidy rules:

- https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html
- https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-delete.html
- https://clang.llvm.org/extra/clang-tidy/checks/modernize/loop-convert.html

Also had to do minor header tweaking to cope with std::size_t with
size_t in the process.

That we already use on source files

Differential Revision: https://phabricator.services.mozilla.com/D296635
2026-04-29 10:40:25 +00:00

19 lines
452 B
C++

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsParserUtils_h
#define nsParserUtils_h
#include "nsIParserUtils.h"
class nsParserUtils final : public nsIParserUtils {
~nsParserUtils() = default;
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPARSERUTILS
};
#endif // nsParserUtils_h