X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fgdb-code-style.el;h=47e99b2b9d59698140a06572b27d9c14e12b1d76;hb=389fe8647555af73fca362bb066786b8cfe52761;hp=6099c1d4b80717b08090695d92cc3729b4130015;hpb=618f726fcb851883a0094aa7fa17003889b7189f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdb-code-style.el b/gdb/gdb-code-style.el index 6099c1d4b8..47e99b2b9d 100644 --- a/gdb/gdb-code-style.el +++ b/gdb/gdb-code-style.el @@ -1,6 +1,6 @@ ;;; gdb-code-style.el --- code style checker for GDB contributors -;; Copyright (C) 2012-2016 Free Software Foundation, Inc. +;; Copyright (C) 2012-2020 Free Software Foundation, Inc. ;; Author: Yao Qi ;; Created: 17 April 2012 @@ -74,4 +74,9 @@ ) (add-hook 'c-mode-common-hook 'gdb-comment-hook) +;; Set c-set-offset 'innamespace as a safe value to be used in .dir-locals.el. +(setq safe-local-variable-values + (cons safe-local-variable-values + '((eval c-set-offset 'innamespace 0) + (c-offsets-alist (innamespace . 0))))) ;;; gdb-code-style.el ends here