forked from sass/node-sass
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AST: Fix clang warnings, add const, remove virtual
Mechanical changes: * Fixes all clang warnings in ast.hpp and removes warnings suppression. * Adds `const` to a bunch of methods. * Removes `virtual` where unnecessary. * Adds `override` where necessary (as part of fixing clang warnings). Non-mechanical changes: * Removes unused `Thunk` class. * Makes `hash()` const by marking `hash_` as `mutable` (implementation detail). * Makes `first()` and `last()` const, and adds `mutable_first()` and `mutable_first()` for the rare cases where mutability is necessary. * `Complex_Selector` internally now uses `tail_` and `head_` directly instead of going through accessors (these accessors create a `SharedImpl` on every call).
- Loading branch information
Showing
14 changed files
with
337 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.