[Libreoffice-commits] core.git: compilerplugins/clang

Andrea Gelmini (via logerrit) logerrit at kemper.freedesktop.org
Thu Dec 5 17:55:41 UTC 2019


 compilerplugins/clang/unusedmember.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 311041436a7dd539521f42fa349e259f6698fc8c
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Thu Dec 5 14:36:19 2019 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Thu Dec 5 18:54:21 2019 +0100

    Fix typos
    
    Change-Id: I53b5433470c567b4d53979ecdb0cef3def7c9fc0
    Reviewed-on: https://gerrit.libreoffice.org/84565
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    Tested-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/compilerplugins/clang/unusedmember.cxx b/compilerplugins/clang/unusedmember.cxx
index f675de42dcd3..c8a536c79f53 100644
--- a/compilerplugins/clang/unusedmember.cxx
+++ b/compilerplugins/clang/unusedmember.cxx
@@ -7,13 +7,13 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-// A more agressive check for unused C struct/C++ class members than what plain Clang offers.  On
+// A more aggressive check for unused C struct/C++ class members than what plain Clang offers.  On
 // the one hand, unlike -Wunused-private-field, it warns about all members regardless of access
 // specifiers, if all code that can use a class has been seen.  On the other hand, it warns about
 // all kinds of members.  But it uses some heuristics (the type showing up in sizeof, alignof,
 // offsetof, certain casts) to determine that seemingly unused data members are probably used after
 // all; the used heuristics were enough to not require any explicit [[maybe_unused]] decorations
-// across the exisiting code base.
+// across the existing code base.
 
 #ifndef LO_CLANG_SHARED_PLUGINS
 
@@ -138,7 +138,7 @@ public:
             }
             if (auto const d1 = dyn_cast<FriendDecl>(d))
             {
-                //TODO: determine whether the friendship is acutally required
+                //TODO: determine whether the friendship is actually required
                 auto const d2 = d1->getFriendDecl();
                 if (d2 == nullptr)
                 { // happens for "friend class C;"
@@ -162,7 +162,7 @@ public:
             {
                 continue;
             }
-            // Check individual members instead of the whole CXXRecordDecl for comming from a macro,
+            // Check individual members instead of the whole CXXRecordDecl for coming from a macro,
             // as CppUnit's CPPUNIT_TEST_SUITE_END (cppunit/extensions/HelperMacros.h) contains a
             // partial member list ending in
             //


More information about the Libreoffice-commits mailing list