X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fgdb-code-style.el;h=8cdec77e6035a0b73f5bebddba0d0f0cb1e80064;hb=6a2c1b8790e58ce0688507b5b1f8369aa621a665;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..8cdec77e60 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-2017 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