From a459d496d7b06d69357324e7c495ccb99163a34a Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 15 Feb 2018 15:58:22 -0800 Subject: [PATCH] Bug 1438707, part 1 - C++ize the XPT modelines. r=njn These are C++ files now. This makes it so the highlighting works if you use classes, etc. Also, add Vim modelines. MozReview-Commit-ID: 6fIkiTDnemt --HG-- extra : rebase_source : 6232f6bbcf7e19763bbb6ac2cc03290eddb5e608 --- xpcom/typelib/xpt/xpt_arena.cpp | 3 ++- xpcom/typelib/xpt/xpt_arena.h | 3 ++- xpcom/typelib/xpt/xpt_struct.cpp | 3 ++- xpcom/typelib/xpt/xpt_struct.h | 3 ++- xpcom/typelib/xpt/xpt_xdr.cpp | 3 ++- xpcom/typelib/xpt/xpt_xdr.h | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/xpcom/typelib/xpt/xpt_arena.cpp b/xpcom/typelib/xpt/xpt_arena.cpp index 8f36e4f0f648..f4e4d9250cfe 100644 --- a/xpcom/typelib/xpt/xpt_arena.cpp +++ b/xpcom/typelib/xpt/xpt_arena.cpp @@ -1,4 +1,5 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* vim: set ts=8 sts=4 et sw=4 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ diff --git a/xpcom/typelib/xpt/xpt_arena.h b/xpcom/typelib/xpt/xpt_arena.h index 32137e65445b..5bd45640020b 100644 --- a/xpcom/typelib/xpt/xpt_arena.h +++ b/xpcom/typelib/xpt/xpt_arena.h @@ -1,4 +1,5 @@ -/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* vim: set ts=8 sts=4 et sw=4 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ diff --git a/xpcom/typelib/xpt/xpt_struct.cpp b/xpcom/typelib/xpt/xpt_struct.cpp index 8094ad07ea58..b42f90d839ba 100644 --- a/xpcom/typelib/xpt/xpt_struct.cpp +++ b/xpcom/typelib/xpt/xpt_struct.cpp @@ -1,4 +1,5 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* vim: set ts=8 sts=4 et sw=4 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ diff --git a/xpcom/typelib/xpt/xpt_struct.h b/xpcom/typelib/xpt/xpt_struct.h index 5d02ec03e734..a2e61fbe4394 100644 --- a/xpcom/typelib/xpt/xpt_struct.h +++ b/xpcom/typelib/xpt/xpt_struct.h @@ -1,4 +1,5 @@ -/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* vim: set ts=8 sts=4 et sw=4 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ diff --git a/xpcom/typelib/xpt/xpt_xdr.cpp b/xpcom/typelib/xpt/xpt_xdr.cpp index 17cdb7f8c763..2a996638fc24 100644 --- a/xpcom/typelib/xpt/xpt_xdr.cpp +++ b/xpcom/typelib/xpt/xpt_xdr.cpp @@ -1,4 +1,5 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* vim: set ts=8 sts=4 et sw=4 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ diff --git a/xpcom/typelib/xpt/xpt_xdr.h b/xpcom/typelib/xpt/xpt_xdr.h index ddc6c7106214..6d7ea09ad288 100644 --- a/xpcom/typelib/xpt/xpt_xdr.h +++ b/xpcom/typelib/xpt/xpt_xdr.h @@ -1,4 +1,5 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* vim: set ts=8 sts=4 et sw=4 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */