X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fgdb-code-style.el;h=47e99b2b9d59698140a06572b27d9c14e12b1d76;hb=21af24c8371a3e040f6f548ddfafb20114442c28;hp=28028e6aa341bdbcf428f39a853f6939a020ea7a;hpb=5977971a97987fb6dcbbc93c045f3cad2b2a1e31;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdb-code-style.el b/gdb/gdb-code-style.el index 28028e6aa3..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 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